@@ -40,12 +40,20 @@ jobs:
40
40
uses : actions/cache@preview
41
41
with :
42
42
path : ~/.cache/pypoetry/virtualenvs
43
- key : ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
43
+ key : ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.deps-version }}- poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
44
44
restore-keys : |
45
- ${{ runner.os }}-${{ matrix.python-version }}-poetry-
45
+ ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.deps-version }}-poetry-
46
+ - name : Poetry cache
47
+ uses : actions/cache@preview
48
+ with :
49
+ path : ~/.poetry
50
+ key : ${{ runner.os }}-${{ matrix.python-version }}-dotpoetry
51
+ restore-keys : |
52
+ ${{ runner.os }}-${{ matrix.python-version }}-dotpoetry-
46
53
- name : Install Python dependencies
47
54
run : |
48
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
55
+ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
56
+ pip install poetry
49
57
$HOME/.poetry/bin/poetry install
50
58
- name : Use lowest dependencies versions
51
59
if : matrix.deps-version == 'lowest'
62
70
run : |
63
71
$HOME/.poetry/bin/poetry run black --check src
64
72
- name : Submit coverage report
65
- if : matrix.python-version == '3.8' && matrix.postgres-version == '12.1' && github.ref == 'refs/heads/master'
73
+ if : matrix.python-version == '3.8' && matrix.postgres-version == '12.1' && matrix.deps-version == 'highest' && github.ref == 'refs/heads/master'
66
74
env :
67
75
CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_TOKEN }}
68
76
run : |
@@ -83,20 +91,12 @@ jobs:
83
91
uses : actions/setup-python@v1
84
92
with :
85
93
python-version : ${{ matrix.python-version }}
86
- - name : virtualenv cache
87
- if : startsWith(github.ref, 'refs/tags/')
88
- uses : actions/cache@preview
89
- with :
90
- path : ~/.cache/pypoetry/virtualenvs
91
- key : ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
92
- restore-keys : |
93
- ${{ runner.os }}-${{ matrix.python-version }}-poetry-
94
94
- name : Release to PyPI
95
95
if : startsWith(github.ref, 'refs/tags/')
96
96
env :
97
97
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
98
98
run : |
99
- curl -sSL https://raw.githubusercontent.com/sdispater /poetry/master/get-poetry.py | python
99
+ curl -sSL https://raw.githubusercontent.com/python-poetry /poetry/master/get-poetry.py | python
100
100
$HOME/.poetry/bin/poetry install
101
101
$HOME/.poetry/bin/poetry build
102
102
$HOME/.poetry/bin/poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
0 commit comments