-
-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (26 loc) · 903 Bytes
/
release.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
name: Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Release
uses: patrick-kidger/action_update_python_project@v2
with:
python-version: "3.11"
test-script: |
cp -r ${{ github.workspace }}/tests ./tests
cp -r ${{ github.workspace }}/examples ./examples
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
python -m pip install -r ./tests/requirements.txt
pytest
pypi-token: ${{ secrets.pypi_token }}
github-user: patrick-kidger
github-token: ${{ github.token }}
email-user: ${{ secrets.email_user }}
email-token: ${{ secrets.email_token }}
email-server: ${{ secrets.email_server }}
email-target: ${{ secrets.email_target }}