Skip to content

Support Python>=3.12, adopt SPDX licensing (#41) #121

Support Python>=3.12, adopt SPDX licensing (#41)

Support Python>=3.12, adopt SPDX licensing (#41) #121

Workflow file for this run

name: main
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: main-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.12
- name: Install
shell: bash -l {0}
run: |
python -m pip install -e ".[test]"
- name: Test
shell: bash -l {0}
run: |
python -m pytest
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
environment: PyPi-deploy
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: Install requirements and build wheel
shell: bash -l {0}
run: |
python -m pip install build twine
python -m build .
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}