Skip to content

Commit b5e4975

Browse files
committed
add release trial
1 parent 4f9fa48 commit b5e4975

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
branches:
9+
- master
10+
tags:
11+
- test**
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
release:
18+
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: checkout
22+
uses: actions/checkout@v3
23+
24+
- name: Set up Python 3.9
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: 3.9
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install -e .
33+
python -m pip install -e .[dev]
34+
35+
- name: publish
36+
run: invoke publish_test

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)