Lock file maintenance (#247) #242
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
name: CI | |
on: | |
pull_request: # any pull request | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
python-checks: | |
strategy: | |
matrix: | |
python-version: [3.11, 3.12] | |
uses: finleyfamily/workflows/.github/workflows/python.checks.yml@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
python-build: | |
needs: | |
- python-checks | |
uses: finleyfamily/workflows/.github/workflows/python.build.yml@master | |
spellcheck: | |
uses: finleyfamily/workflows/.github/workflows/spellcheck.yml@master | |
publish-test-pypi: | |
name: 🚀 Publish 📦 To Test PyPI | |
if: github.event_name == 'push' && github.ref_name == 'master' | |
needs: | |
- python-checks | |
- python-build | |
- spellcheck | |
runs-on: ubuntu-latest | |
environment: | |
name: testpypi | |
url: https://test.pypi.org/project/${{ github.event.repository.name }} | |
permissions: | |
id-token: write | |
steps: | |
- name: ⤵️ Download distribution artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: pypi-dist | |
path: dist | |
- name: 🚀 Publish 📦 to Test PyPI | |
uses: pypa/gh-action-pypi-publish@v1.12.2 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |