Skip to content

Bump coverage from 7.6.1 to 7.6.4 #413

Bump coverage from 7.6.1 to 7.6.4

Bump coverage from 7.6.1 to 7.6.4 #413

Workflow file for this run

name: Actions
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.0
- name: Set up Python 3.11
uses: actions/setup-python@v5.2.0
with:
python-version: "3.11"
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Lint/test with pre-commit
run: poetry run pre-commit run --all-files
test:
name: Test with Python ${{ matrix.python-version }}
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Build
run: poetry build
coverage:
name: Coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v5.2.0
with:
python-version: "3.11"
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Upload coverage to Codecov
run: |
poetry run pytest --cov --cov-report=xml
curl -sfSL https://codecov.io/bash | bash -