-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 935 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: release
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test with pytest
run: |
pip install pytest
pytest cache
- name: Code quality with flake8
run: |
pip install flake8
flake8 cache --exclude gen
- name: Build package
run: |
pip install build
python3 -m build
- name: Upload package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
repository_url: https://upload.pypi.org/legacy/
build_dir: dist