Skip to content

Commit c0f58e2

Browse files
authored
Update main.yml
1 parent 5ae003f commit c0f58e2

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
1-
name: App Run Test
1+
name: Docker App CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: ["master"]
66
pull_request:
7+
branches: ["master"]
78

89
jobs:
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

0 commit comments

Comments
 (0)