This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
[pre-commit.ci] pre-commit autoupdate #597
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
# Compare: https://github.com/peter-evans/docker-compose-actions-workflow | |
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- prod | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
- prod | |
paths-ignore: | |
- 'docs/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Docker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the stack | |
run: docker-compose build | |
- name: Test | |
run: > | |
docker-compose run | |
-v ${PWD}/tests:/opt/app/tests | |
--entrypoint="/bin/sh -c 'sleep 1 | |
&& python3.9 -m alembic upgrade head | |
&& apt-get install -y git | |
&& pip install \".[dev]\" | |
&& pytest tests -vx'" | |
web |