Skip to content

Bump ruff from 0.1.13 to 0.1.14 #158

Bump ruff from 0.1.13 to 0.1.14

Bump ruff from 0.1.13 to 0.1.14 #158

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@v3
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@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
files: ./coverage.xml
fail_ci_if_error: true
verbose: true