Skip to content

Adds CODECOV_TOKEN to env #5

Adds CODECOV_TOKEN to env

Adds CODECOV_TOKEN to env #5

Workflow file for this run

name: Test
on:
pull_request: {}
push:
branches: master
jobs:
test:
strategy:
matrix:
python-version: ['3.12']
os: [ubuntu-latest]
name: Python ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8
- name: Install dependencies with poetry
run: poetry install
- run: poetry run ruff format . --check
- run: poetry run ruff check .
- run: poetry run mypy
- run: poetry run pytest --cov --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}