Setup CI to check code and run tests. #2
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: | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
- name: Install dependencies | ||
working-directory: ./flask | ||
run: | | ||
python -m pip install -r requirements/dev.txt --upgrade pip | ||
- name: Run codecheck | ||
working-directory: ./flask | ||
run: bash scripts/code_check.sh | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() # always run even if the previous step fails | ||
working-directory: ./flask | ||
Check failure on line 28 in .github/workflows/check.yml GitHub Actions / Code checkInvalid workflow file
|
||
with: | ||
report_paths: 'reports/junit.xml' | ||
- name: Archive reports | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
working-directory: ./flask | ||
with: | ||
name: reports | ||
path: reports |