Add Support for Python 3.13 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For most recent version see: | |
# https://github.com/WIPACrepo/wipac-dev-tools/blob/main/.github/workflows/wipac-cicd.yml | |
# Copy any updates to wipac-dev-tools. | |
name: wipac ci/cd | |
on: [push] | |
jobs: | |
py-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.versions.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v3 | |
- id: versions | |
uses: WIPACrepo/wipac-dev-py-versions-action@v2.1 | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- uses: WIPACrepo/wipac-dev-flake8-action@v1.0 | |
mypy: | |
needs: [py-versions] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
py3: ${{ fromJSON(needs.py-versions.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py3 }} | |
- uses: WIPACrepo/wipac-dev-mypy-action@v2.0 | |
py-setup: | |
runs-on: ubuntu-latest | |
steps: | |
# dependabot can't access normal secrets | |
# & don't run non-branch triggers (like tags) | |
# & we don't want to trigger an update on PR's merge to main/master/default (which is a branch) | |
# IOW: only for non-dependabot branches | |
- if: | | |
github.actor != 'dependabot[bot]' && | |
github.ref_type == 'branch' && | |
format('refs/heads/{0}', github.event.repository.default_branch) != github.ref | |
name: checkout (only for non-dependabot non-default branches) | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- if: | | |
github.actor != 'dependabot[bot]' && | |
github.ref_type == 'branch' && | |
format('refs/heads/{0}', github.event.repository.default_branch) != github.ref | |
name: wipac-dev-py-setup-action (only for non-dependabot non-default branches) | |
uses: WIPACrepo/wipac-dev-py-setup-action@v2.6 | |
with: | |
base-keywords: "WIPAC IceCube" | |
pip-install: | |
# FUTURE DEV: this can be expanded to run actual tests instead of just pip installing | |
needs: [py-versions] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
py3: ${{ fromJSON(needs.py-versions.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py3 }} | |
- run: | | |
pip install --upgrade pip wheel setuptools | |
pip install . | |
release: | |
# only run on main/master/default | |
if: format('refs/heads/{0}', github.event.repository.default_branch) == github.ref | |
needs: [flake8, mypy, py-setup, pip-install] | |
runs-on: ubuntu-latest | |
concurrency: release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: python-semantic-release/python-semantic-release@v7.34.6 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
repository_username: __token__ | |
repository_password: ${{ secrets.PYPI_TOKEN }} |