Debian Codegraph @

.github/workflows/main.yml

raw
1 on:
2 push:
3 pull_request:
4
5 jobs:
6 build:
7 name: build
8 runs-on: ubuntu-latest
9 strategy:
10 matrix:
11 python:
12 - "3.7"
13 - "3.8"
14 - "3.9"
15 - "3.10"
16 - "3.11"
17
18 steps:
19 - uses: actions/checkout@v3
20 - uses: actions/setup-python@v4
21 with:
22 python-version: ${{ matrix.python }}
23
24 - run: python -m pip install -U pip
25 - run: python -m pip install setuptools wheel
26 - run: python -m pip install flake8 twine
27
28 - run: python setup.py sdist bdist_wheel
29 - run: python -m pip install dist/*.whl
30 - run: twine check dist/*
31 - run: flake8
32
33 - name: Publish PyPI package
34 if: startsWith(github.ref, 'refs/tags/v') && matrix.python == '3.11'
35 env:
36 TWINE_USERNAME: __token__
37 TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
38 run: twine upload dist/*.whl dist/*.tar.gz