Skip to content

Commit 0ab34db

Browse files
committed
Upgrade GitHub Actions - drop 3.7, add 3.12
1 parent 56a918f commit 0ab34db

4 files changed

Lines changed: 22 additions & 42 deletions

File tree

.github/workflows/deploy-demo.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,14 @@ jobs:
1212
scheduled:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
name: Check out repo
1717
- name: Set up Python
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.9"
21-
- uses: actions/cache@v1
22-
name: Configure pip caching
23-
with:
24-
path: ~/.cache/pip
25-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
26-
restore-keys: |
27-
${{ runner.os }}-pip-
20+
python-version: "3.12"
21+
cache: pip
22+
cache-dependency-path: setup.py
2823
- name: Install Python dependencies
2924
run: |
3025
python -m pip install --upgrade pip
@@ -91,7 +86,7 @@ jobs:
9186
sqlite-utils rebuild-fts github.db
9287
# Populate _analyze_tables_ table
9388
sqlite-utils analyze-tables github.db --save
94-
- uses: actions/upload-artifact@v2
89+
- uses: actions/upload-artifact@v3
9590
with:
9691
path: github.db
9792
- name: Set up Cloud Run

.github/workflows/publish.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: ${{ matrix.python-version }}
19-
- uses: actions/cache@v2
20-
name: Configure pip caching
21-
with:
22-
path: ~/.cache/pip
23-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
24-
restore-keys: |
25-
${{ runner.os }}-pip-
19+
cache: pip
20+
cache-dependency-path: setup.py
2621
- name: Install dependencies
2722
run: |
2823
pip install -e '.[test]'
@@ -33,18 +28,13 @@ jobs:
3328
runs-on: ubuntu-latest
3429
needs: [test]
3530
steps:
36-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3732
- name: Set up Python
38-
uses: actions/setup-python@v2
39-
with:
40-
python-version: "3.11"
41-
- uses: actions/cache@v2
42-
name: Configure pip caching
33+
uses: actions/setup-python@v4
4334
with:
44-
path: ~/.cache/pip
45-
key: ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
46-
restore-keys: |
47-
${{ runner.os }}-publish-pip-
35+
python-version: "3.12"
36+
cache: pip
37+
cache-dependency-path: setup.py
4838
- name: Install dependencies
4939
run: |
5040
pip install setuptools wheel twine

.github/workflows/readme-toc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check out repo
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Update TOC
1818
run: npx markdown-toc README.md -i
1919
- name: Commit and push if README changed

.github/workflows/test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
10+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: ${{ matrix.python-version }}
17-
- uses: actions/cache@v2
18-
name: Configure pip caching
19-
with:
20-
path: ~/.cache/pip
21-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
22-
restore-keys: |
23-
${{ runner.os }}-pip-
17+
cache: pip
18+
cache-dependency-path: setup.py
2419
- name: Install dependencies
2520
run: |
2621
pip install -e '.[test]'

0 commit comments

Comments
 (0)