Skip to content

Commit 81c19f6

Browse files
committed
CI: Add python 3.14.0-rc.1 (as experimental python version).
1 parent 4d408d8 commit 81c19f6

File tree

5 files changed

+326
-270
lines changed

5 files changed

+326
-270
lines changed

.github/workflows/release-to-pypi.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
# -- WORKFLOW: Publish/release this package on PyPI
2-
# SEE:
1+
# =============================================================================
2+
# GITHUB ACTIONS WORKFLOW: Publish/release this package on PyPI
3+
# =============================================================================
4+
# RELATED: Github actions -- Publishing a Python package
35
# * https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
46
# * https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi
7+
# * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
8+
#
9+
# RELATED TO: pypi.org
10+
# * https://docs.pypi.org/trusted-publishers/
11+
# * https://docs.pypi.org/trusted-publishers/adding-a-publisher/
512
#
13+
# RELATED: Github actions workflows
614
# * https://docs.github.com/en/actions/writing-workflows
715
# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs
816
# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release
917
#
1018
# GITHUB ACTIONS:
1119
# * https://github.com/actions/checkout
1220
# * https://github.com/pypa/gh-action-pypi-publish
13-
#
14-
# RELATED:
15-
# * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
21+
# =============================================================================
1622

1723
# -- STATE: PREPARED_ONLY, NOT_RELEASED_YET
1824
name: release-to-pypi
@@ -38,15 +44,15 @@ jobs:
3844
- uses: actions/checkout@v5
3945
- uses: actions/setup-python@v5
4046
with:
41-
python-version: "3.10"
47+
python-version: "3.13"
4248
- name: "Install Python package dependencies (with: uv)"
4349
run: |
4450
python -m pip install -U uv
4551
python -m uv pip install -U pip setuptools wheel build twine
4652
- name: Build this package
4753
run: python -m build
4854
- name: Check this package (before upload)
49-
run: twine check dist/*
55+
run: twine check --strict dist/*
5056
- name: Upload this package to PyPI
5157
uses: pypa/gh-action-pypi-publish@release/v1
5258
with:

.github/workflows/test-pypy27.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
test:
1616
runs-on: ubuntu-latest
17+
# -- DISABLED: continue-on-error: true
1718
strategy:
1819
fail-fast: false
1920
matrix:
@@ -26,11 +27,17 @@ jobs:
2627
cache: 'pip'
2728
cache-dependency-path: 'py.requirements/*.txt'
2829

29-
- name: Install Python package dependencies
30+
- name: Install Python package dependencies (step 0)
3031
run: |
31-
python -m pip install -U pip setuptools wheel
32-
pip install --upgrade -r py.requirements/ci.github.testing.txt
33-
pip install -e .
32+
python -m pip install -U pip setuptools build wheel
33+
pip --version
34+
- name: Install Python package dependencies (step 1)
35+
run: |
36+
pip install -r py.requirements/ci.github.testing.txt
37+
pip list
38+
- name: Install Python package dependencies (step 2)
39+
run: |
40+
pip install .
3441
- name: Run tests
3542
run: pytest
3643
- name: Upload test reports

.github/workflows/test.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,34 @@ on:
1414
jobs:
1515
test:
1616
# -- EXAMPLE: runs-on: ubuntu-latest
17-
runs-on: ${{ matrix.os }}
1817
strategy:
1918
fail-fast: false
2019
matrix:
2120
# PREPARED: os: [ubuntu-latest, macos-latest, windows-latest]
2221
os: [ubuntu-latest, windows-latest]
23-
python-version: ["3.13.0-rc.3", "3.12", "3.11", "3.10"]
24-
exclude:
25-
- os: windows-latest
26-
python-version: "2.7"
22+
python-version: ["3.13", "3.12", "3.11", "3.10"]
23+
# -- PREPARED FOR: Experimental Python versions with "continue-on-error".
24+
experimental: [false]
25+
include:
26+
- python-version: "3.14.0-rc.1"
27+
experimental: true
28+
# -- DISABLED:
29+
# exclude:
30+
# - os: windows-latest
31+
# python-version: "2.7"
32+
# DISABLED: runs-on: ${{ matrix.os }}
33+
continue-on-error: ${{ matrix.experimental }}
2734
steps:
2835
- uses: actions/checkout@v5
2936
# DISABLED: name: Setup Python ${{ matrix.python-version }} on platform=${{ matrix.os }}
3037
- uses: actions/setup-python@v5
3138
with:
3239
python-version: ${{ matrix.python-version }}
33-
cache: 'pip'
34-
cache-dependency-path: 'py.requirements/*.txt'
40+
# DISABLED: cache: 'pip'
41+
# DISABLED: cache-dependency-path: 'py.requirements/*.txt'
42+
# -- DISABLED:
43+
# - name: Show Python version
44+
# run: python --version
3545
- name: setup-uv -- Speed-up Python package installations ...
3646
uses: astral-sh/setup-uv@v3
3747
with:
@@ -40,6 +50,7 @@ jobs:
4050
**/pyproject.toml
4151
**/py.requirements/ci.github.testing.txt
4252
**/py.requirements/basic.txt
53+
**/py.requirements/testing.txt
4354
- name: "Install Python package dependencies (with: uv)"
4455
run: |
4556
uv pip install --system -U pip setuptools wheel

0 commit comments

Comments
 (0)