Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Sep 10, 2024
1 parent ee5fd33 commit cb2cd2a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ permissions:

jobs:
lint:
name: Lint (Python${{ matrix.python-version }})
name: Lint
runs-on: ubuntu-latest
if: |
(github.event.action != 'labeled') ||
(github.event.review.state == 'approved') ||
(github.event_name == 'push')
strategy:
matrix:
python-version:
- "3.9"
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
Expand All @@ -54,10 +50,10 @@ jobs:
pypi.org:443
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python${{ matrix.python-version }}
- name: Set up Python3
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python-version }}
python-version: "3.x"
- name: Install CI libraries
run: |
python -m pip install --require-hashes -r CI/requirements_ci.txt
Expand All @@ -75,7 +71,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
Expand Down Expand Up @@ -120,30 +116,30 @@ jobs:
# Linux builds
- os: ubuntu-latest
markers: -m 'not slow'
python-version: "3.10"
python-version: "3.11"
tox-env: standard
- os: ubuntu-latest
markers: -m 'not slow'
python-version: "3.11"
python-version: "3.12"
tox-env: standard
- os: ubuntu-latest
markers: -m 'not slow'
python-version: "3.12"
python-version: "3.12-dev.1"
tox-env: standard
# Windows builds
- os: windows-latest
markers: -m 'not slow'
python-version: "3.9"
python-version: "3.10"
tox-env: py39-coverage-prefetch # Test data prefetch is needed for Windows
# macOS builds
- os: macos-latest
python-version: "3.10"
python-version: "3.11"
markers: '' # Slow tests
tox-env: py310-coverage-extras
# Specialized tests
- os: ubuntu-latest
markers: -m 'not requires_internet and not slow'
python-version: "3.9"
python-version: "3.13-dev.1"
tox-env: py39-coverage-offline-prefetch
- os: ubuntu-latest
markers: ''
Expand Down Expand Up @@ -213,7 +209,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.9", "3.12" ]
python-version: [ "3.10", "3.12" ]
defaults:
run:
shell: bash -l {0}
Expand Down
24 changes: 12 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[tox]
min_version = 4.16.0
min_version = 4.18.1
env_list =
lint
docs
notebooks
doctests
py39
py310-extras-numpy
py311-extras-sbck
py312-extras-lmoments
py310
py311-extras-numpy
py312-extras-sbck
py313-extras-lmoments
labels =
static = lint
test = py39, py310-extras-numpy, py311-extras-sbck, py312-extras-lmoments
test = py310, py311-extras-numpy, py312-extras-sbck, py313-extras-lmoments
special = docs, notebooks, doctests
requires =
pip >= 24.0
flit >=3.9
flit >=3.9,<4.0
opts = -vv

[gh]
python =
3.9 = py39-coverage
3.10 = py310-coverage-extras-numpy
3.11 = py311-coverage-extras-sbck
3.12 = py312-coverage-extras-lmoments
3.10 = py310-coverage
3.11 = py311-coverage-extras-numpy
3.12 = py312-coverage-extras-sbck
3.13 = py313-coverage-extras-lmoments

[testenv:lint]
description = Run code quality compliance tests under {basepython}
Expand Down Expand Up @@ -117,7 +117,7 @@ extras =
extras: extras
deps =
lmoments: lmoments3
numpy: numpy>=1.20,<2.0
numpy: numpy>=1.23,<2.0
numpy: pint>=0.18,<0.24.0
sbck: pybind11
upstream: -r CI/requirements_upstream.txt
Expand Down

0 comments on commit cb2cd2a

Please sign in to comment.