Move some configuration out of the .env file and into a config/app.yaml
file.
#475
Workflow file for this run
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: Code check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
Check: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements/dev.txt --upgrade pip | |
- name: Create fake .env file | |
run: cp .env.template .env | |
- name: Run codecheck | |
run: bash scripts/codecheck.sh | |
- name: Run tests | |
run: bash -x scripts/run_tests.sh | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: 'reports/junit.xml' | |
- name: Post coverage report | |
uses: 5monkeys/cobertura-action@v14 | |
with: | |
path: reports/coverage.xml | |
minimum_coverage: 80 | |
- name: Archive reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: reports |