Skip to content

Commit

Permalink
Update GitHub Actions versions, run flake8 on 3.12
Browse files Browse the repository at this point in the history
This should fix

    Node.js 16 actions are deprecated. Please update the following
    actions to use Node.js 20: actions/setup-python@v4,
    actions/cache@v3. For more information see:
    https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

that you can see if you go look at the action runs on the web, which I
basically never do (e.g.
https://github.com/mgedmin/check-python-versions/actions/runs/8857533494)

And running flake8 with Python 3.12 allows it to check inside f-strings
due to AST parsing changes.
  • Loading branch information
mgedmin committed May 3, 2024
1 parent 765e57a commit 36131bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
uses: actions/checkout@v4

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

- name: Pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
Expand Down Expand Up @@ -85,13 +85,13 @@ jobs:
- name: Git clone
uses: actions/checkout@v4

- name: Set up Python ${{ env.default_python || '3.9' }}
uses: actions/setup-python@v4
- name: Set up Python ${{ env.default_python || '3.12' }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.default_python || '3.9' }}"
python-version: "${{ env.default_python || '3.12' }}"

- name: Pip cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini') }}
Expand Down

0 comments on commit 36131bc

Please sign in to comment.