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
1 change: 0 additions & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ It runs on `ubuntu-latest` and our latest supported Python version, and reports
## Regular Testing

A `cron` workflow triggers every Saturday at 12:00 (UTC time) and runs the full testing suite, on all supported operating systems and supported Python versions.
It is very similar to the normal Testing Suite, but in addition also runs on `Python 3.x` so that newly released Python versions that would break tests are automatically included.

## Publishing

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@ jobs:
coverage:
runs-on: ubuntu-latest
env:
python-version: 3.12
python-version: "3.13"

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install uv and Python ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ env.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: Set up Python ${{ env.python-version }}
run: uv python install ${{ env.python-version }}

- name: Install package with test dependencies
run: uv sync --all-extras --dev

Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
python-version: ["3.10", 3.11, 3.12, 3.13] # crons should always run latest python hence 3.x
# We escape with quotes so it doesn't get interpreted as float (e.g. 3.10 -> 3.1 by GA's parser)
python-version: ["3.10", "3.11", "3.12", "3.13"] # add new versions when they are released
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install uv and Python ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}


- name: Install package with test dependencies
run: uv sync --all-extras --dev

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
documentation:
runs-on: ubuntu-latest
env:
python-version: 3.12
python-version: "3.12"

steps:
- uses: actions/checkout@v4
Expand All @@ -29,15 +29,13 @@ jobs:
- name: Install optipng, dvipng and cm-super
run: sudo apt-get install -y optipng dvipng cm-super

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install uv and Python ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ env.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: Set up Python ${{ env.python-version }}
run: uv python install ${{ env.python-version }}


- name: Install package with test dependencies
run: uv sync --all-extras --dev

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@ jobs:
deploy:
runs-on: ubuntu-latest
env:
python-version: 3.13
python-version: "3.13"


steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install uv and Python ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ env.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: Set up Python ${{ env.python-version }}
run: uv python install ${{ env.python-version }}

- name: Build wheels and sdist
run: make build

Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
python-version: ["3.10", 3.11, 3.12, 3.13]
# We escape with quotes so it doesn't get interpreted as float (e.g. 3.10 -> 3.1 by GA's parser)
python-version: ["3.10", "3.11", "3.12", "3.13"] # add new versions when they are released
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install uv and Python ${{ env.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install package with test dependencies
run: uv sync --all-extras --dev

- name: Get acc-models-lhc
run: git clone -b 2022 https://gitlab.cern.ch/acc-models/acc-models-lhc.git --depth 1

- name: Run Tests
run: make tests