File tree Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Original file line number Diff line number Diff line change 10
10
env :
11
11
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
12
12
steps :
13
- - uses : actions/checkout@master
13
+ - uses : actions/checkout@v3
14
14
15
15
- name : get version from tag
16
16
id : get_version
@@ -26,31 +26,18 @@ jobs:
26
26
key : " tool.poetry.version"
27
27
value : " ${{ steps.get_version.outputs.VERSION }}"
28
28
29
- - name : Set up Python 3.9
30
- uses : actions/setup-python@v3
29
+ - name : Set up Python
30
+ uses : actions/setup-python@v4
31
31
with :
32
32
python-version : 3.9
33
33
34
- - name : Install Poetry
35
- uses : dschep/install-poetry-action@v1.3
36
-
37
- - name : Cache Poetry virtualenv
38
- uses : actions/cache@v3
39
- id : cache
40
- with :
41
- path : ~/.virtualenvs
42
- key : poetry-${{ hashFiles('**/poetry.lock') }}
43
- restore-keys : |
44
- poetry-${{ hashFiles('**/poetry.lock') }}
45
-
46
- - name : Set Poetry config
34
+ - name : Prepare environment
47
35
run : |
48
- poetry config virtualenvs.in-project false
49
- poetry config virtualenvs.path ~/.virtualenvs
50
-
51
- - name : Install Dependencies
52
- run : poetry install
53
- if : steps.cache.outputs.cache-hit != 'true'
36
+ python -m venv .venv
37
+ source .venv/bin/activate
38
+ pip install -U setuptools pip poetry==1.3.2 tox-poetry
39
+ poetry config virtualenvs.create false
40
+ poetry install
54
41
55
42
- name : Publish to PyPI
56
43
if : github.event_name == 'release'
You can’t perform that action at this time.
0 commit comments