@@ -10,38 +10,30 @@ jobs:
1010 env :
1111 ACTIONS_ALLOW_UNSECURE_COMMANDS : true
1212 steps :
13- - uses : actions/checkout@master
14- - name : Set up Python 3.7
15- uses : actions/setup-python@v1
16- with :
17- python-version : 3.7
13+ - uses : actions/checkout@master
1814
19- - name : Install Poetry
20- 15+ - name : Set up Python
16+ uses : actions/setup-python@v1
17+ with :
18+ python-version : ' 3.10'
2119
22- - name : Cache Poetry virtualenv
23- uses : actions/cache@v1
24- id : cache
25- with :
26- path : ~/.virtualenvs
27- key : poetry-${{ hashFiles('**/poetry.lock') }}
28- restore-keys : |
29- poetry-${{ hashFiles('**/poetry.lock') }}
20+ - uses : docker-practice/actions-setup-docker@master
3021
31- - name : Set Poetry config
32- run : |
33- poetry config virtualenvs.in-project false
34- poetry config virtualenvs.path ~/.virtualenvs
22+ - name : Install Poetry
23+ run : |
24+ curl -sSL https://install.python-poetry.org | python3 -
3525
36- - name : Set Submodules
37- run : |
38- git submodule update --init --recursive
26+ - name : Install Dev requirements
27+ run : |
28+ pip install -U setuptools wheel
29+ pip install -r dev_requirements.txt
3930
40- - name : Install Dependencies
41- run : poetry install
42- if : steps.cache.outputs.cache-hit != 'true'
31+ - name : Install Dependencies
32+ if : github.event_name == 'release'
33+ run : |
34+ poetry install
4335
44- - name : Publish to PyPI
45- if : github.event_name == 'release'
46- run : |
47- poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build
36+ - name : Publish to PyPI
37+ if : github.event_name == 'release'
38+ run : |
39+ poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build
0 commit comments