-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1021 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
38
39
40
41
42
43
name: Release
on:
release:
types: [ released ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout github repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Lint
uses: psf/black@stable
with:
version: "23.7.0"
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade jupyter matplotlib build twine
- name: Build and install
run: |
python -m build
python -m pip install dist/xfaster*.whl
- name: Run tutorial to test
working-directory: docs/notebooks
run: |
jupyter nbconvert --to script XFaster_Tutorial.ipynb
python XFaster_Tutorial.py
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine upload dist/*