Skip to content

Debugging GA

Debugging GA #15

Workflow file for this run

name: Run Tests
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: create-json
uses: jsdaniell/[email protected]
with:
name: "firebase_sa_keys.json"
json: ${{ secrets.FIREBASE_SA_KEYS_FILE_CONTENT }}
dir: 'app/'
- name: create-json
uses: jsdaniell/[email protected]
with:
name: "google_oauth_secret.json"
json: ${{ secrets.GOOGLE_OAUTH_SECRET_FILE_CONTENT }}
dir: 'app/'
- name: Setup env
run: |
mv .env.sample .env
ls -la
docker compose build api db
docker compose up -d db
- name: Run lints
run: |
docker compose run -T api mypy .
docker compose run -T api ruff check .
docker compose run -T api ruff format . --check
- name: Run tests
run: |
docker compose run -T api pytest --cov=.
docker compose run -T api coverage report --show-missing --format=markdown >> $GITHUB_STEP_SUMMARY
docker compose run -T api coverage html
docker compose run -T api coverage report --fail-under=100
- name: Clean
run: docker compose down -v --remove-orphans
- name: Store coverage files
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: app/htmlcov
retention-days: 5