ci(deploy): 🚧 fix pull_request
environment deployment
#526
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test 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 |