Debian Codegraph @

.github/workflows/publish.yml

raw
1 name: publish
2
3 on:
4 create:
5 tags:
6 - v*
7
8 jobs:
9 build:
10
11 runs-on: ubuntu-24.04
12
13 steps:
14 - uses: actions/checkout@v4
15
16 - name: Set up Python 3.12
17 uses: actions/setup-python@v5
18 with:
19 python-version: 3.12
20
21 - name: Install dependencies
22 run: |
23 pip install pipenv
24 pipenv install --python 3.12 --dev
25
26 - name: Lint with flake8
27 run: |
28 pipenv run flake8 . --count --show-source --statistics
29 pipenv run flake8 . --count --exit-zero --statistics
30
31 - name: Upload coverage to Codecov
32 uses: codecov/codecov-action@v5
33
34 - name: Generate distribution 📦for PyPI
35 run: |
36 pip install wheel
37 python setup.py sdist bdist_wheel
38
39 - name: Publish distribution to PyPI
40 uses: pypa/gh-action-pypi-publish@master
41 with:
42 password: ${{ secrets.PYPI_PASSWORD }}