Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,41 @@ jobs:
build-and-publish-test:
runs-on: ubuntu-latest
steps:
- uses: snok/.github/workflows/publish@main
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
overwrite-repository: true
repository-url: https://test.pypi.org/legacy/
token: ${{ secrets.TEST_PYPI_TOKEN }}
python-version: "3.10"
- name: Load cached Poetry installation
uses: actions/cache@v5
with:
# This path assumes the workflow is run on an ubuntu runner
path: ~/.local
key: key-poetry-0
- uses: snok/install-poetry@v1
- name: Publish package
shell: bash
run: |
poetry config repositories.custom 'https://test.pypi.org/legacy/'
poetry config pypi-token.custom ${{ secrets.TEST_PYPI_TOKEN }}
poetry publish --build --no-interaction --repository custom
build-and-publish:
needs: build-and-publish-test
runs-on: ubuntu-latest
steps:
- uses: snok/.github/workflows/publish@main
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Load cached Poetry installation
uses: actions/cache@v5
with:
token: ${{ secrets.PYPI_TOKEN }}
# This path assumes the workflow is run on an ubuntu runner
path: ~/.local
key: key-poetry-0
- uses: snok/install-poetry@v1
- name: Publish package
shell: bash
run: |
echo "Using default repository (PyPi)"
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build --no-interaction
10 changes: 5 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
id: setup-python
with:
python-version: "${{ matrix.python-version }}"
- uses: actions/cache@v4
- uses: actions/cache@v5
id: poetry-cache
with:
path: |
Expand All @@ -66,7 +66,7 @@ jobs:
- run: source .venv/bin/activate && poetry install
- name: Run tests
run: |
pip install flake8==5
pip install flake8==7
pip install -e .
flake8 .
source .venv/bin/activate
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Typing :: Typed',
]

Expand Down