Skip to content
Merged
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
29 changes: 17 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,34 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.11", "3.12", "3.13", "3.14"]
upload-version: ["3.11"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 parameterized pytest
python -m pip install ruff parameterized pytest
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; else pip install -r requirements.txt; fi
- name: Lint with flake8
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
ruff check . --select=E9,F63,F7,F82 --output-format=full
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff check . --exit-zero --line-length=127 --statistics
- name: Test with pytest
run: |
pytest -vvv tests/
- name: Build sdist and wheel
run: pipx run build
- name: Upload sdist and wheel as artifacts
uses: actions/upload-artifact@v4
if: ${{ matrix.python-version == matrix.upload-version }}
uses: actions/upload-artifact@v7
with:
name: dist
path: dist
Expand All @@ -61,7 +63,10 @@ jobs:

steps:
# download sdist and wheel from dist job
- uses: actions/download-artifact@v4
# publish to PyPI using trusted publishing
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/download-artifact@v8
with:
path: dist
# Publish to PyPI using trusted publishing
- name: Publish to PyPI (v1.14.0)
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b

6 changes: 4 additions & 2 deletions ParProcCo/slurm/slurmdb_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# filename: slurmdb-rest-44.yaml
# timestamp: 2026-06-11T15:22:35+00:00

# ruff: noqa: F405

from __future__ import annotations
from pydantic import BaseModel, Field, RootModel
from pydantic import BaseModel, Field

from slurm_rest import *
from slurm_rest import * # noqa: F403

class OpenapiSlurmdbdPingResp(BaseModel):
errors: OpenapiErrors | None = None
Expand Down
6 changes: 3 additions & 3 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "ParProcCo" %}
{% set version = "2.1.1" %}
{% set version = "2.2.0" %}

package:
name: {{ name|lower }}
Expand All @@ -15,11 +15,11 @@ build:

requirements:
host:
- python >=3.10
- python >=3.11
- pip
- setuptools
run:
- python >=3.10
- python >=3.11
- h5py >=3
- pydantic >=2
- pyyaml
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: parprocco
channels:
- conda-forge
dependencies:
- python >=3.10
- python >=3.11
- h5py >=3
- pydantic >=2
- pyyaml
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">= 3.10"
requires-python = ">= 3.11"
dependencies = [
"h5py",
"pydantic",
Expand Down