-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 1.07 KB
/
deploy-pypi-testing.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
name: PyPI Testing Deploy
on: [push, pull_request]
jobs:
PyPITestingDeploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
bash ./.github/scripts/install_dependencies.sh USER
bash ./.github/scripts/install_genalyzer.sh
sudo rm -rf build
mkdir build && cd build && cmake .. -DPYTHON_BINDINGS=ON && cd ..
pip install setuptools wheel twine build
- name: Update to dev version and build test release
run: |
pip install invoke
invoke bumpversion-test
cd build/bindings/python
python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.ref == 'refs/heads/main'
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
packages_dir: ./build/bindings/python/dist