Skip to content

build(deps-dev): bump coverage from 7.6.0 to 7.6.1 (#177) #329

build(deps-dev): bump coverage from 7.6.0 to 7.6.1 (#177)

build(deps-dev): bump coverage from 7.6.0 to 7.6.1 (#177) #329

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Installing dependencies
run: poetry install --no-interaction
- name: set PY env variable for pre-commit cache
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{env.PY}}|${{hashFiles('.pre-commit-config.yaml')}}
- name: Run linters
run: |
poetry run pre-commit run --all --show-diff-on-failure --color=always
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Installing dependencies
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true