Skip to content

Commit

Permalink
CI: Update used actions and Python versions (#721)
Browse files Browse the repository at this point in the history
Update the used actions and the Python versions in the GitHub Actions CI workflows.
  • Loading branch information
EwoutH authored Nov 7, 2024
1 parent be64ef3 commit 2ae9fa4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.12"

- name: Cache Poetry
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
Expand All @@ -33,18 +33,18 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, pypy-3.8]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.10"]
runs-on: ${{ matrix.platform }}

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 }}

- name: Cache Poetry
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
Expand All @@ -65,12 +65,12 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.12"

- name: Cache Poetry
uses: actions/cache@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
name: "Publish library"
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0

- name: Setup Python Env
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: "3.12"

- name: Install dependencies
run: pip install poetry dunamai
Expand Down

0 comments on commit 2ae9fa4

Please sign in to comment.