Skip to content

build(deps-dev): bump certifi from 2024.2.2 to 2024.7.4 #369

build(deps-dev): bump certifi from 2024.2.2 to 2024.7.4

build(deps-dev): bump certifi from 2024.2.2 to 2024.7.4 #369

Workflow file for this run

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