Skip to content

Bump jinja2 from 3.1.2 to 3.1.4 in /.ci/docs (#143) #128

Bump jinja2 from 3.1.2 to 3.1.4 in /.ci/docs (#143)

Bump jinja2 from 3.1.2 to 3.1.4 in /.ci/docs (#143) #128

name: Validation
on:
push:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
requirements: ['.in', '.txt']
steps:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r .ci/requirements_test.txt
pip install -r "requirements${{ matrix.requirements }}"
- name: Run pytest
run: |
coverage run -m pytest -q tests
coverage xml
- name: Store coverage for sonar job
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage.xml
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
if: always()
needs: pytest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get coverage from pytest job
uses: actions/download-artifact@v1
with:
name: coverage
continue-on-error: true
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.python.coverage.reportPaths=coverage/coverage.xml