Skip to content

Commit 79ac12d

Browse files
committed
Upgrade GitHub Actions workflows
1 parent 1529cda commit 79ac12d

3 files changed

Lines changed: 23 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,43 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
runs-on: ubuntu-latest
1013
strategy:
1114
matrix:
12-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1316
steps:
1417
- uses: actions/checkout@v4
1518
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v6
1720
with:
1821
python-version: ${{ matrix.python-version }}
1922
cache: pip
20-
cache-dependency-path: '**/setup.py'
23+
cache-dependency-path: setup.py
2124
- name: Install dependencies
2225
run: |
23-
pip install -e '.[test]'
26+
pip install '.[test]'
2427
- name: Run tests
2528
run: |
26-
pytest
29+
python -m pytest
2730
deploy:
2831
runs-on: ubuntu-latest
32+
needs: [test]
2933
environment: release
3034
permissions:
3135
id-token: write
32-
needs: [test]
3336
steps:
3437
- uses: actions/checkout@v4
3538
- name: Set up Python
36-
uses: actions/setup-python@v5
39+
uses: actions/setup-python@v6
3740
with:
38-
python-version: '3.12'
41+
python-version: "3.14"
3942
cache: pip
40-
cache-dependency-path: '**/setup.py'
43+
cache-dependency-path: setup.py
4144
- name: Install dependencies
4245
run: |
4346
pip install setuptools wheel build
@@ -46,3 +49,4 @@ jobs:
4649
python -m build
4750
- name: Publish
4851
uses: pypa/gh-action-pypi-publish@release/v1
52+

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: Test
22

3-
on: [push]
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
47

58
jobs:
69
test:
710
runs-on: ubuntu-latest
811
strategy:
9-
fail-fast: false
1012
matrix:
11-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
12-
datasette-version: ["<1.0", ">=1.0a13"]
13+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1314
steps:
1415
- uses: actions/checkout@v4
1516
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@v6
1718
with:
1819
python-version: ${{ matrix.python-version }}
1920
cache: pip
2021
cache-dependency-path: setup.py
2122
- name: Install dependencies
2223
run: |
23-
pip install -e '.[test]'
24-
pip install "datasette${{ matrix.datasette-version }}"
24+
pip install '.[test]'
2525
- name: Run tests
26-
timeout-minutes: 1
2726
run: |
28-
pytest
27+
python -m pytest
28+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_long_description():
2828
version=VERSION,
2929
packages=["datasette_upload_csvs"],
3030
entry_points={"datasette": ["upload_csvs = datasette_upload_csvs"]},
31-
python_requires=">=3.7",
31+
python_requires=">=3.10",
3232
install_requires=[
3333
"datasette>=0.61",
3434
"asgi-csrf>=0.7",

0 commit comments

Comments
 (0)