Skip to content

Setup CI to check code and run tests. #2

Setup CI to check code and run tests.

Setup CI to check code and run tests. #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Code check

Invalid workflow file

The workflow is not valid. .github/workflows/check.yml (Line: 28, Col: 9): Unexpected value 'working-directory' .github/workflows/check.yml (Line: 34, Col: 9): Unexpected value 'working-directory'
with:
report_paths: 'reports/junit.xml'
- name: Archive reports
if: always()
uses: actions/upload-artifact@v3
working-directory: ./flask
with:
name: reports
path: reports