Skip to content

Commit

Permalink
Update GitHub Action versions. (#88)
Browse files Browse the repository at this point in the history
* Update GitHub Action versions.

* Update pypy version names for setup-python@v5.

* Update Python version used to build sdist and wheels to the earliest version supported by the build package.
  • Loading branch information
hodgestar authored Aug 25, 2024
1 parent 43496ec commit dccac36
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
name: Build sdist
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.6"
# Python 3.8 is the oldest version supported by build
python-version: "3.8"

- name: Install pip build
run: |
Expand All @@ -28,7 +29,7 @@ jobs:
run: |
python -m build --sdist .
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: sdist
path: |
Expand All @@ -42,12 +43,13 @@ jobs:
# Build a wheel without speedups that can run on pure Python
GENSHI_BUILD_SPEEDUP: 0
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.6"
# Python 3.8 is the oldest version supported by build
python-version: "3.8"

- name: Install pip build
run: |
Expand All @@ -58,7 +60,7 @@ jobs:
run: |
python -m build --wheel .
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: |
Expand All @@ -78,9 +80,9 @@ jobs:

steps:
- name: Download build artifacts to local runner
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", pypy3]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "pypy3.9"]
pytest-extra-options: ["--strict-config -W \"ignore:pkg_resources is deprecated\""]
include:
- python-version: pypy2
- python-version: "pypy2.7"
pytest-extra-options: ""
- python-version: "3.13.0-beta.2"
pytest-extra-options: "--strict-config -W \"ignore:pkg_resources is deprecated\" -W ignore::DeprecationWarning"
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down

0 comments on commit dccac36

Please sign in to comment.