build(deps-dev): bump types-setuptools #359
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
name: Lint and Build | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
release: | |
types: | |
- created | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --verbose --all-files | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
- run: flit build | |
deploy: | |
name: Deploy to PyPi | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- build | |
if: ${{ github.event_name == 'release' && github.event.action == 'created' }} | |
env: | |
FLIT_USERNAME: "__token__" | |
FLIT_PASSWORD: ${{ secrets.PYPI_DEPLOY_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
- run: flit build | |
- run: flit publish |