Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions to latest #155

Merged
merged 6 commits into from
Sep 13, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

Expand All @@ -28,7 +28,7 @@ jobs:
- name: 🏗️ Build
run: python -m flit build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist

Expand All @@ -43,7 +43,7 @@ jobs:
# Mandatory for trusted publishing
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: 🚀 Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
28 changes: 16 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ env:
TOX_TESTENV_PASSENV: FORCE_COLOR
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
PYTHON_LATEST: "3.11"
COVERAGE_CORE: sysmon # Only supported on Python 3.12+, ignore on older versions
PYTHON_LATEST: "3.12"

jobs:
lint:
Expand All @@ -21,10 +22,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_LATEST}}
- uses: pre-commit/[email protected].0
python-version: ${{ env.PYTHON_LATEST }}
- uses: pre-commit/[email protected].1
test:
runs-on: ubuntu-latest
needs: lint
Expand All @@ -37,7 +38,7 @@ jobs:
run: |
sudo apt-get install -y jpegoptim pngquant gifsicle optipng libjpeg-progs webp
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
Expand All @@ -50,11 +51,12 @@ jobs:
run: coverage run --parallel-mode -m runtests

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-${{ matrix.python }}
path: .coverage.*
if-no-files-found: ignore
include-hidden-files: true

coverage:
name: Combine & check coverage.
Expand All @@ -63,15 +65,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_LATEST}}
python-version: ${{ env.PYTHON_LATEST }}
cache: pip

- name: Download coverage data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage
run: |
Expand All @@ -83,7 +86,8 @@ jobs:
python -Im coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY

- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov
overwrite: true
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
version: 2

build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
# Keep in-sync with tox.ini/docs and ci.yml/docs
python: "3.11"
python: "3.12"

sphinx:
configuration: docs/conf.py
Expand Down