From 572de557696e29044f58b86fe7b125e66f6b0f20 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Tue, 4 Jun 2024 08:45:19 +1000 Subject: [PATCH] Update CI to include Python 3.11, 3.12 (#190) --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 208f05c..4c46a03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,9 +39,13 @@ jobs: image: python:3.9-slim - python-version: '3.10' image: python:3.10-slim + - python-version: '3.11' + image: python:3.11-slim + - python-version: '3.12' + image: python:3.12-slim steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run tests shell: bash @@ -64,10 +68,10 @@ jobs: - test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 - name: Installing baseline packages run: | @@ -78,13 +82,13 @@ jobs: run: python setup.py sdist bdist_wheel - name: Capture Wheel and SDist - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifact path: dist/* - name: Publish - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.event.release.tag_name, 'v') uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__