-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.26 KB
/
container-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "Test: web app"
on:
pull_request:
branches: ["main"]
jobs:
deploy-test-container:
name: Test app in container
runs-on: ubuntu-latest
permissions:
contents: "read"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build docker image
run: |
make docker
- name: Test image
run: |
docker run --rm -d --name test_container -p 8080:8080 noplp-stats:dev
docker run --link test_container:test_container waisbrot/wait
curl --fail -v -o /dev/null http://localhost:8080/global
dash-testing:
name: Run end-to-end Dash tests
runs-on: ubuntu-latest
permissions:
contents: "read"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install
- name: Launch tests
run: |
export PATH=$PATH:$CHROMEWEBDRIVER
poetry run pytest --log-cli-level DEBUG --headless