Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 35 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,58 @@ on:
- pull_request

jobs:

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv with Python
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: 3.13

- name: Install the project
run: uv sync --extra linting

- name: ruff-lint
run: uv run ruff check

- name: ruff-format
run: uv run ruff format --check

test:
needs: lint
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
include:
- name: Test suite with py38-ubuntu
python: "3.8"
os: ubuntu-latest
toxenv: py38
experimental: false
- name: Test suite with py39-ubuntu
python: "3.9"
os: ubuntu-latest
toxenv: py39
experimental: false
- name: Test suite with py310-ubuntu
python: "3.10"
os: ubuntu-latest
toxenv: py310
experimental: false
- name: Test suite with py311-ubuntu
python: "3.11"
os: ubuntu-latest
toxenv: py311
experimental: false
- name: Test suite with py312-ubuntu
python: "3.12-dev"
python: "3.12"
os: ubuntu-latest
toxenv: py312
experimental: true
- name: Formatting with black + isort
python: "3.9"
os: ubuntu-latest
toxenv: format
experimental: false
- name: Linting with flake8
python: "3.9"
- name: Test suite with py313-ubuntu
python: "3.13"
os: ubuntu-latest
toxenv: lint
toxenv: py313
experimental: false
- name: Test suite with py314-ubuntu
python: "3.14"
os: ubuntu-latest
toxenv: py314
experimental: true
- name: Codacy Coverage Report
python: "3.9"
python: "3.13"
os: ubuntu-latest
toxenv: coverage
experimental: false
Expand All @@ -67,10 +75,10 @@ jobs:
# Pytest
PYTEST_ADDOPTS: "--color=yes"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
check-latest: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
include:
- name: Test suite for notebooks
python: "3.10"
python: "3.13"
toxenv: notebooks
env:
# Color Output
Expand All @@ -25,10 +25,10 @@ jobs:
# Pytest
PYTEST_ADDOPTS: "--color=yes"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
check-latest: true
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Sphinx configuration for the Metran documentation."""

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down Expand Up @@ -45,8 +47,7 @@
"sphinx.ext.viewcode",
"IPython.sphinxext.ipython_console_highlighting", # lowercase didn't work
"sphinx.ext.autosectionlabel",
"nbsphinx",
"nbsphinx_link",
"myst_nb",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading