Skip to content

chore(deps): add sphinxcontrib-tikz and update pytest markers #220

chore(deps): add sphinxcontrib-tikz and update pytest markers

chore(deps): add sphinxcontrib-tikz and update pytest markers #220

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
# Triggers the workflow on push request events for the master branch,
# and pull request events for all branches.
on:
pull_request:
push:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10" ]
os: [macos-latest]
include:
- os: macos-latest
path: ~/Library/Caches/pip
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Ref: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Set up cache
uses: actions/cache@v3
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('uv.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
uv sync --group dev
# Runs a single command using the runners shell
- name: Run style checks
run: |
make check-codestyle
- name: Run tests
run: |
make test_ci
- name: Typechecking
run: |
make mypy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}