Skip to content

Commit 904fbce

Browse files
semarjclaude
andcommitted
Update CI/CD workflows to use current actions and Python versions
- Update actions/checkout from v2 to v4 - Update actions/setup-python from v2 to v5 - Update actions/cache from v2 to v4 - Replace GoogleCloudPlatform/release-please-action@v2 with googleapis/release-please-action@v4 - Replace AndreMiras/coveralls-python-action@develop with coverallsapp/github-action@v2 - Update Python test matrix from [3.7, 3.8, 3.9] to [3.10, 3.11, 3.12, 3.13] - Update CD workflow to use Python 3.12 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 57ab321 commit 904fbce

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/CD.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@ jobs:
88
release-please:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: GoogleCloudPlatform/release-please-action@v2
11+
- uses: googleapis/release-please-action@v4
1212
id: release
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
1515
release-type: python
16-
package-name: shipengine
1716

1817
# Checkout code if release was created
19-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
2019
if: ${{ steps.release.outputs.release_created }}
2120

2221
# Setup Python if release was created
2322
- name: Install Python
24-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2524
with:
26-
python-version: 3.7
25+
python-version: "3.12"
2726
if: ${{ steps.release.outputs.release_created }}
2827

2928
- name: Install dependancies

.github/workflows/CI.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.7, 3.8, 3.9]
18+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

2828
- name: Cache pip
29-
uses: actions/cache@v2
29+
uses: actions/cache@v4
3030
with:
3131
# This path is specific to Ubuntu
3232
path: ~/.cache/pip
@@ -57,11 +57,11 @@ jobs:
5757
coveralls:
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v2
61-
- name: Set up Python 3.7
62-
uses: actions/setup-python@v2
60+
- uses: actions/checkout@v4
61+
- name: Set up Python 3.12
62+
uses: actions/setup-python@v5
6363
with:
64-
python-version: 3.7
64+
python-version: "3.12"
6565

6666
- name: Install python dependencies
6767
run: |
@@ -74,7 +74,7 @@ jobs:
7474
pytest
7575
7676
- name: Coveralls
77-
uses: AndreMiras/coveralls-python-action@develop
77+
uses: coverallsapp/github-action@v2
7878
with:
7979
parallel: true
8080
flag-name: Python Test Suite
@@ -84,6 +84,6 @@ jobs:
8484
runs-on: ubuntu-latest
8585
steps:
8686
- name: Coveralls Finished
87-
uses: AndreMiras/coveralls-python-action@develop
87+
uses: coverallsapp/github-action@v2
8888
with:
8989
parallel-finished: true

0 commit comments

Comments
 (0)