-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (71 loc) · 1.86 KB
/
pypi.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: pypi
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-22.04
strategy:
matrix:
bmt_version:
# commenting out erroring version of BL that are validated erroneous by BMT (bmt==0.8.2)
# - '1.7.0'
# - '1.8.0'
# - '1.8.1'
# - '1.8.2'
# - '2.0.0'
# - '2.0.1'
# - '2.0.2'
# - '2.1.0'
# - '2.2.0'
# - '2.2.1'
# - '2.2.2'
# - '2.2.3'
# - '2.2.4'
# - '2.2.5'
# the following ones should work but aren't really needed so commenting out for now
# - 'v2.3.0'
# - 'v2.3.1'
# - 'v2.4.0'
# - 'v2.4.1'
# - 'v2.4.2'
# - 'v2.4.3'
# - 'v2.4.5'
# - 'v2.4.6'
# - 'v2.4.7'
# - 'v2.4.8'
# - 'v3.0.0'
# - 'v3.0.1'
# - 'v3.0.2'
# - 'v3.0.3'
# - 'v3.1.0'
- 'v3.6.0'
# - 'v4.0.0'
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install setuptools and wheel
run: >-
python -m
pip install
-r requirements-build.txt
--user
- name: Build a binary wheel and a source tarball
run: >-
python
setup.py
sdist bdist_wheel
--v${{ matrix.bmt_version }}
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.test_pypi_api_token }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_api_token }}