Skip to content

Commit

Permalink
fix: dev: workflow action version bumps and cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Arnold <[email protected]>
  • Loading branch information
sarnold committed Oct 26, 2024
1 parent 0f462ba commit b0884e6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run bandit
uses: VCTLabs/bandit-report-artifacts@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -69,6 +69,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: matrix.python-version == 3.9 && runner.os == 'Linux'
with:
name: wheels
path: ./dist/*.whl
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We need to fetch with a depth of 2 for pull_request so we can do HEAD^2
fetch-depth: 2
Expand Down Expand Up @@ -157,11 +157,11 @@ jobs:
- name: Setup old python for test
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.8

- name: Generate coverage
run: |
tox -e coverage,py37,py311
tox -e coverage,py38,py311
- name: Code Coverage Summary Report (data)
uses: irongut/[email protected]
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
markdown: ${{ steps.url.outputs.markdown }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: badges
path: badges
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v5
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11']

steps:
- name: Set git crlf/eol
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -47,9 +47,10 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: matrix.python-version == 3.9 && runner.os == 'Linux'
with:
name: wheels
path: ./dist/*.whl
name: packages
path: dist

create_release:
name: Create Release
Expand All @@ -63,13 +64,17 @@ jobs:
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
echo ${{ env.VERSION }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

# download all artifacts to project dir
- uses: actions/download-artifact@v4

- name: check artifacts
run: |
ls -l packages/
- name: Generate changes file
uses: sarnold/gitchangelog-action@master
with:
Expand All @@ -87,4 +92,4 @@ jobs:
draft: false
prerelease: false
files: |
wheels/redis*.whl
packages/redis*

0 comments on commit b0884e6

Please sign in to comment.