File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Collect coverage and upload to Codecov
1
+ name : Coverage
2
2
on :
3
3
push :
4
4
branches :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ workflow_run :
4
+ workflows : ["Tests"]
5
+ types :
6
+ - completed
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-22.04
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-python@v4
14
+ with :
15
+ python-version : " 3.12"
16
+ - name : Install Poetry
17
+ uses : abatilo/actions-poetry@v2
18
+ - name : Setup a local virtual environment
19
+ run : |
20
+ poetry config virtualenvs.create true --local
21
+ poetry config virtualenvs.in-project true --local
22
+ - uses : actions/cache@v3
23
+ name : Define a cache for the virtual environment based on the dependencies lock file
24
+ with :
25
+ path : ./.venv
26
+ key : venv-${{ hashFiles('poetry.lock') }}
27
+ - name : Install dependencies
28
+ run : poetry install
29
+ - name : Configure poetry for publishing
30
+ run : poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
31
+ - name : Publish package to PyPI
32
+ run : poetry publish --build
Original file line number Diff line number Diff line change 1
- name : Run tests
1
+ name : Tests
2
2
on :
3
3
push :
4
4
branches :
You can’t perform that action at this time.
0 commit comments