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
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: ci

on: [push, pull_request]

env:
FORCE_COLOR: 1

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,14 +45,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
run: pip install .[tests]
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
version: 0.9.7
activate-environment: true

- name: Run pytest
run: pytest -s --cov=plumpy tests/
- name: Install dependencies
run: uv sync

- name: Create xml coverage
run: coverage xml
- name: Run pytest
run: pytest --cov=plumpy tests/

- name: Upload coverage to Codecov
if: github.repository == 'aiidateam/plumpy'
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ repos:
exclude: *exclude_ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.7
hooks:
# Check and update the uv lockfile
- id: uv-lock

- repo: local
hooks:
- id: mypy
Expand Down
17 changes: 11 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,19 @@ docs = [
'myst-nb~=1.2.0',
'sphinx~=7.2.0',
'sphinx-book-theme~=1.1.4',
'importlib-metadata~=4.12.0',
]
pre-commit = [
'mypy==1.18.2',
'pre-commit~=3.6',
'types-pyyaml~=6.0'
]
tests = [
'ipykernel==6.12.1',
'ipykernel~=6.12.1',
'pytest~=8.4',
'pytest-asyncio~=0.12,<0.17',
'pytest-cov~=4.1',
'pytest-cov~=7.0',
'pytest-notebook>=0.8.0',
'shortuuid==1.0.8',
'importlib-resources~=5.2',
'shortuuid==1.0.13',
]

[tool.flit.module]
Expand Down Expand Up @@ -138,12 +136,19 @@ module = [
ignore_missing_imports = true

[tool.pytest.ini_options]
minversion = '6.0'
addopts = '--strict-config --strict-markers -ra --cov-report xml --cov-append'
minversion = '7.0'
testpaths = [
'test',
]
filterwarnings = []

[tool.uv]
# NOTE: When you bump the minimum uv version, you also need to change it in:
# .pre-commit-config.yaml
# .github/workflows/ci.yml
required-version = ">=0.8.4"

[tool.tox]
legacy_tox_ini = """
[tox]
Expand Down
Loading
Loading