Skip to content

⬆ Bump pylint from 2.17.6 to 3.2.3 #183

⬆ Bump pylint from 2.17.6 to 3.2.3

⬆ Bump pylint from 2.17.6 to 3.2.3 #183

Workflow file for this run

name: Python tests
on:
pull_request:
branches: [main, develop]
push:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9.13, 3.10.8, 3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v4
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install Dependencies
run: poetry install
- name: Run Tests
run: poetry run pytest -- --cov-report=xml
- name: Save coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.xml
coverage:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: coverage.xml