Skip to content

Commit

Permalink
ci: support 3.13 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Oct 22, 2024
1 parent 772ede2 commit af4d822
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/iterative/cookiecutter-dvc-plugin",
"commit": "aa6adf593a1e9ecffbbe87c4b487e463dc774f62",
"commit": "d58214dd515da71aaabd50dcc5d8b0c71d645e8b",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,22 @@ permissions:
contents: read

jobs:
pip:
build:
environment: pypi
permissions:
contents: read
id-token: write
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install
run: |
pip install --upgrade pip wheel
pip install build twine
- name: Build
run: |
python -m build
twine check dist/*
- uses: astral-sh/setup-uv@v3
- run: uv pip install twine --system
- run: uv build
- run: twine check dist/*
- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
14 changes: 7 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ["3.9", "3.10", "3.11", "3.12"]
pyv: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand All @@ -34,14 +34,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyv }}
cache: 'pip'
cache-dependency-path: pyproject.toml

- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml

- name: install
run: |
pip install --upgrade pip wheel
pip install -e ".[dev]"
pip install "dvc[testing] @ git+https://github.com/iterative/dvc"
run: uv pip install -e ".[dev]" "dvc[testing] @ git+https://github.com/iterative/dvc" --system

- name: lint
timeout-minutes: 10
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ["version"]
dependencies = [
Expand Down

0 comments on commit af4d822

Please sign in to comment.