Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Aug 14, 2024
1 parent 4f45a54 commit 198ba80
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ jobs:
python-test:
needs: detect-backend-changes
if: ${{ needs.detect-backend-changes.outputs.has-changes == 'true' }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 9
matrix:
os: [windows-latest, ubuntu-20.04]
if: ${{ needs.detect-backend-changes.outputs.has-changes == 'true' }}
steps:
- name: Checkout GitHub repo (+ download lfs dependencies)
uses: actions/checkout@v4
Expand All @@ -98,6 +98,20 @@ jobs:
with:
name: python-code-coverage-report
path: coverage.xml

python-tests:
needs: [detect-backend-changes, python-test]
if: ${{ needs.detect-backend-changes.outputs.has-changes == 'true' && always() }}
runs-on: ubuntu-20.04
steps:
- name: Results of Python tests by OS
run: exit 1
# See https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
################################################################
## Front-end
Expand Down Expand Up @@ -216,8 +230,9 @@ jobs:
################################################################

sonarcloud:
runs-on: ubuntu-20.04
if: ${{ always() }}
needs: [python-test, npm-test]
runs-on: ubuntu-20.04
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v4
Expand Down

0 comments on commit 198ba80

Please sign in to comment.