Skip to content

Commit 419ed09

Browse files
committed
add release trial
1 parent 4f9fa48 commit 419ed09

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4-
name: Validation
4+
name: Release
55

6-
on:
7-
push:
8-
branches:
9-
- master
10-
tags:
11-
- v**
6+
on:
7+
release:
8+
types: [published]
129

1310
permissions:
1411
contents: read
@@ -33,4 +30,4 @@ jobs:
3330
python -m pip install -e .[dev]
3431
3532
- name: publish
36-
run: invoke publish_test
33+
run: invoke publish

.github/workflows/release_test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Release
5+
6+
on:
7+
push:
8+
tags:
9+
- test**
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
release:
16+
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Python 3.9
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: 3.9
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install -e .
31+
python -m pip install -e .[dev]
32+
33+
- name: build
34+
run: python setup.py bdist_wheel
35+
36+
- name: publish
37+
run: python -m twine upload --repository testpypi dist/*

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ pytest
66
pytest-cov
77
coverage
88
flake8
9+
invoke

0 commit comments

Comments
 (0)