Skip to content

Merge pull request #32 from rgmining/dependabot/pip/uv-0.8.6 #77

Merge pull request #32 from rgmining/dependabot/pip/uv-0.8.6

Merge pull request #32 from rgmining/dependabot/pip/uv-0.8.6 #77

Workflow file for this run

name: Python library
on:
push:
branches: [main]
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install dependencies
run: poetry install
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Check files
run: poetry run pre-commit run --all-files
- name: Report test coverage to Code Climate
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: coverage.xml:coverage.py
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.13' }}