build(deps): Bump pytest-asyncio from 0.23.8 to 0.24.0 #458
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: test CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- "src/**" | |
- "tests/**" | |
- ".github/workflows/test.yaml" | |
# allow the test CI to be manually triggerred | |
workflow_dispatch: | |
jobs: | |
pytest_with_coverage: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
test_base: | |
- ubuntu-18.04 | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v4 | |
# sonarcloud needs full git histories | |
with: | |
fetch-depth: 0 | |
- name: Build ota-test_base docker image | |
run: | | |
docker compose -f docker/docker-compose_tests.yml build tester-${{ matrix.test_base }} | |
- name: Execute pytest with coverage trace under ota-test_base container | |
run: | | |
mkdir -p test_result | |
docker compose -f docker/docker-compose_tests.yml run --rm tester-${{ matrix.test_base }} | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
continue-on-error: true | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
if: ${{ matrix.test_base == 'ubuntu-22.04' }} | |
# export the coverage report to the comment! | |
- name: Add coverage report to PR comment | |
continue-on-error: true | |
uses: MishaKav/[email protected] | |
with: | |
pytest-xml-coverage-path: test_result/coverage.xml | |
junitxml-path: test_result/pytest.xml | |
if: ${{ matrix.test_base == 'ubuntu-22.04' }} |