Skip to content

Commit

Permalink
Support python 3.12 version (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
myouju authored Jun 14, 2024
1 parent fef87ef commit a87aefc
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 15 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ jobs:
release:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

- name: Setup Python Version
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "${{ matrix.python-version }}"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down Expand Up @@ -46,7 +52,7 @@ jobs:
# Only do these on push

- name: Run Integration Tests
if: github.event_name == 'push'
if: github.event_name == 'push' && startsWith(steps.setup-python.outputs.python-version, '3.8')
env:
DRY_RUN_SVC_JSON: ${{ secrets.DRY_RUN_SVC_JSON }}
run: |
Expand All @@ -55,7 +61,7 @@ jobs:
make integration
- name: Publish package to TestPyPI
if: github.event_name == 'push'
if: github.event_name == 'push' && startsWith(steps.setup-python.outputs.python-version, '3.8')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand All @@ -64,7 +70,7 @@ jobs:
skip_existing: true

- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(steps.setup-python.outputs.python-version, '3.8')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
Loading

0 comments on commit a87aefc

Please sign in to comment.