[pre-commit.ci] auto fixes from pre-commit.com hooks #578
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 Docker image | |
on: | |
push: | |
pull_request: | |
types: [opened, reopened] | |
schedule: | |
- cron: "0 12 * * 1" | |
jobs: | |
push_to_registry: | |
name: Build docker file for testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Build Docker image | |
run: docker compose -f test-docker-compose.yml build | |
- name: Run tests inside the container | |
run: docker compose -f test-docker-compose.yml run gspconsumer | |
env: # Or as an environment variable | |
API_KEY: ${{ secrets.API_KEY }} | |
SYSTEM_ID: ${{ secrets.SYSTEM_ID }} | |
- name: Copy coverage | |
run: | | |
# copy file | |
mv ./tests/.coverage . | |
mv ./tests/coverage.xml . | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: false |