Run integration tests #285
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: integration-tests | |
run-name: Run integration tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Get USER_ID to env | |
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV | |
- name: Get GROUP_ID to env | |
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV | |
- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json | |
- run: | | |
echo docker compose --env-file src/docker/.compose.testing.env \ | |
-f src/docker/docker-compose-testing.yml run web pylint \ | |
-E --disable E1101,E0307 --ignore-paths \ | |
'.*\/migrations\/[0-9]+.*.py' analysis datasets dashboard home jobs kantele rawstatus | |
- run: | | |
docker compose --env-file src/docker/.compose.testing.env \ | |
-f src/docker/docker-compose-testing.yml run web pylint \ | |
-E --disable E1101,E0307 --ignore-paths \ | |
'.*\/migrations\/[0-9]+.*.py' analysis datasets dashboard home jobs kantele rawstatus | |
integration-tests: | |
runs-on: ubuntu-latest | |
needs: linting | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Get USER_ID to env | |
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV | |
- name: Get GROUP_ID to env | |
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV | |
- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json | |
- run: bash .github/run_tests_integration.sh | |
unit-tests: | |
runs-on: ubuntu-latest | |
needs: linting | |
steps: | |
- uses: actions/checkout@v4 | |
- run: bash .github/run_tests_unit.sh |