@@ -100,12 +100,35 @@ jobs:
100
100
# Verify with utils script back in the workspace
101
101
# (verify.py is not included in flit install)
102
102
pushd ${{ github.workspace }}
103
- python -m utils.verify
103
+ python -m utils.verify 5000
104
104
popd
105
105
106
106
pkill -f "python -m lute.main" # Kill that process.
107
107
108
108
109
+ # Test build docker container and try running.
110
+ # Slightly wasteful re-setup of node.
111
+ docker-build :
112
+ runs-on : ubuntu-latest
113
+ needs : base-ci
114
+ steps :
115
+ - uses : actions/checkout@v3
116
+ - uses : actions/setup-python@v4
117
+ with :
118
+ python-version : 3.11
119
+ cache : ' pip' # caching pip dependencies
120
+ - run : pip install -r requirements.txt
121
+ - name : Test docker build
122
+ run : |
123
+ docker build -f docker/Dockerfile --build-arg INSTALL_MECAB=false -t lute3 .
124
+ # Run container in the background, and check.
125
+ docker run -d -p 5000:5000 -v ./my_data:/lute_data -v ./my_backups:/lute_backup --name my-lute lute3:latest
126
+ sleep 10 # Give it a moment to start.
127
+ python -m utils.verify 5000
128
+ docker stop my-lute
129
+ docker rm my-lute
130
+
131
+
109
132
# Generate a coverage badge, don't worry if it fails.
110
133
# Uses https://github.com/Schneegans/dynamic-badges-action to update a secret gist
111
134
# (ID a15001ec2ff889f7be0b553df9881566) and an API token, per notes at
@@ -235,4 +258,4 @@ jobs:
235
258
- name : Verify flit install
236
259
run : |
237
260
cd ${{ github.workspace }}
238
- python -m utils.verify
261
+ python -m utils.verify 5000
0 commit comments