File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : App Run Test
1+ name : Docker App CI
22
33on :
44 push :
5- branches : [master]
5+ branches : [" master" ]
66 pull_request :
7+ branches : ["master"]
78
89jobs :
9- test :
10- name : Test on ${{ matrix.os }}
11- runs-on : ${{ matrix.os }}
12- strategy :
13- matrix :
14- os : [ubuntu-latest, windows-latest, macos-latest]
10+ build-and-test :
11+ runs-on : ubuntu-latest
1512
1613 steps :
17- - name : Checkout repository
14+ - name : Checkout repo
1815 uses : actions/checkout@v4
1916
20- - name : Set up Python
21- uses : actions/setup-python@v5
22- with :
23- python-version : ' 3.10'
17+ - name : Set up Docker Buildx
18+ uses : docker/setup-buildx-action@v3
2419
25- - name : Install dependencies
26- run : |
27- python -m pip install --upgrade pip
28- pip install -r requirements.txt
20+ - name : Build Docker image
21+ run : docker build -t dash-ms-parser .
2922
30- - name : Smoke test Dash app
23+ - name : Run container test
3124 run : |
32- python -c "from app import app; assert callable(app.run_server)"
25+ docker run --rm -d -p 8050:8050 --name dash_test dash-ms-parser
26+ sleep 10
27+ docker ps -a
28+ curl --retry 5 --retry-connrefused --silent --show-error http://localhost:8050
You can’t perform that action at this time.
0 commit comments