Skip to content

Commit

Permalink
Update deprecated action versions.
Browse files Browse the repository at this point in the history
Github has moved workers to a new node [1], so we need to update those
actions before the old node is decommissioned.

[1] https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Signed-off-by: Jason Guiditta <[email protected]>
  • Loading branch information
jguiditta committed Apr 26, 2024
1 parent 6c566a2 commit ccb3348
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup System Dependencies
Expand Down
26 changes: 10 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,57 +9,51 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Setup System Dependencies
run: |
sudo apt update
sudo apt install libkrb5-dev -y
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -epy
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup System Dependencies
run: |
sudo apt update
sudo apt install libkrb5-dev -y
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
run: pip install tox
- name: Lint with flake8
run: tox -eflake8
twine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup System Dependencies
run: |
sudo apt update
sudo apt install libkrb5-dev -y
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
run: pip install tox
- name: Run twine-check
run: tox -etwine

0 comments on commit ccb3348

Please sign in to comment.