diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bf7521d..459feef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f475743..eefcef3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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: | @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 77748f8..cc6e2a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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', ]