This repository was archived by the owner on Jul 5, 2023. It is now read-only.
File tree 3 files changed +22
-4
lines changed
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 35
35
needs : setup
36
36
runs-on : ${{ matrix.os }}
37
37
steps :
38
+ - name : Check out repository
39
+ uses : actions/checkout@v3
40
+ - name : Load cached venv
41
+ id : cached-poetry-dependencies
42
+ uses : actions/cache@v3
43
+ with :
44
+ path : .venv
45
+ key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
38
46
- name : Run Black
39
47
run : |
40
48
source .venv/scripts/activate
Original file line number Diff line number Diff line change 1
- name : Main CI pipeline
1
+ name : Publish pipeline
2
2
on :
3
3
push :
4
4
tags :
13
13
shell : bash
14
14
runs-on : ubuntu-latest
15
15
steps :
16
+ - name : Check out repository
17
+ uses : actions/checkout@v3
18
+ - name : Install Poetry
19
+ uses : snok/install-poetry@v1
20
+ - name : Load cached venv
21
+ id : cached-poetry-dependencies
22
+ uses : actions/cache@v3
23
+ with :
24
+ path : .venv
25
+ key : venv-${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}
16
26
- name : Publish package to PyPi
17
27
env :
18
28
PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ runs:
18
18
virtualenvs-create : true
19
19
virtualenvs-in-project : true
20
20
- name : Load cached venv
21
- id : cached-pip-wheels
21
+ id : cached-poetry-dependencies
22
22
uses : actions/cache@v3
23
23
with :
24
- path : ~/.cache
25
- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs .python-version }}-${{ hashFiles('**/poetry.lock') }}
24
+ path : .venv
25
+ key : venv-${{ runner.os }}-${{ inputs .python-version }}-${{ hashFiles('**/poetry.lock') }}
26
26
- name : Install dependencies
27
27
shell : bash
28
28
run : poetry install --no-interaction --no-root
You can’t perform that action at this time.
0 commit comments