fix ci tests #89
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 | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
types: [opened, closed] | |
branches: | |
- '*' | |
# make workflow "callable" by others | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set timezone | |
uses: szenius/set-timezone@v2.0 | |
with: | |
timezoneLinux: "Europe/Berlin" | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Python v3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: pip install | |
run: pip install -r requirements.txt -r requirements-dev.txt | |
- name: copy config | |
run: cp config_testing.yaml config.yaml | |
- name: run pytest unit | |
run: python -m pytest -o cache_dir=/tmp tests/unit | |
- name: make logs dir writable for local user | |
run: chmod 777 logs | |
- name: run pytest integration | |
env: | |
DOCKER_LOCAL_USER: 1000:1000 | |
run: docker compose run --rm flask python -m pytest -o cache_dir=/tmp tests/integration |