Skip to content

Commit

Permalink
chore: Update packaging jobs (#19)
Browse files Browse the repository at this point in the history
- Default to Python 3.12.
- Default to use pyproject.toml as requirements file.
- Fetch all tags to allow VCS versioning.
  • Loading branch information
antonagestam committed Dec 17, 2023
1 parent f72c5e2 commit a7a365d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ on:
requirements_file:
type: "string"
required: false
default: "setup.cfg"
default: "pyproject.toml"
python-version:
type: "string"
required: false
default: "3.11"
default: "3.12"

jobs:
build-and-publish:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: git fetch --tags
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python-test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
requirements_file:
type: "string"
required: false
default: "setup.cfg"
default: "pyproject.toml"
python-version:
type: "string"
required: false
default: "3.11"
default: "3.12"

jobs:
build-and-check:
name: Build and check package metadata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: git fetch --tags
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
Expand Down

0 comments on commit a7a365d

Please sign in to comment.