Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
5c30345c
Unverified
Commit
5c30345c
authored
Jan 17, 2020
by
Sébastien Eustace
Committed by
GitHub
Jan 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Github actions cache issues (#1908)
parent
636ce8b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
.github/workflows/main.yml
+16
-3
No files found.
.github/workflows/main.yml
View file @
5c30345c
...
...
@@ -30,6 +30,10 @@ jobs:
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Get full python version
id
:
full-python-version
run
:
|
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
-
name
:
Install and set up Poetry
run
:
|
python get-poetry.py --preview -y
...
...
@@ -39,7 +43,7 @@ jobs:
uses
:
actions/cache@v1
with
:
path
:
.venv
key
:
${{ runner.os }}-venv-${{
matrix.python-
version }}-${{ hashFiles('**/poetry.lock') }}
key
:
${{ runner.os }}-venv-${{
steps.full-python-version.outputs.
version }}-${{ hashFiles('**/poetry.lock') }}
-
name
:
Install dependencies
run
:
|
source $HOME/.poetry/env
...
...
@@ -62,6 +66,10 @@ jobs:
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Get full python version
id
:
full-python-version
run
:
|
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
-
name
:
Install and set up Poetry
run
:
|
python get-poetry.py --preview -y
...
...
@@ -71,7 +79,7 @@ jobs:
uses
:
actions/cache@v1
with
:
path
:
.venv
key
:
${{ runner.os }}-venv-${{
matrix.python-
version }}-${{ hashFiles('**/poetry.lock') }}
key
:
${{ runner.os }}-venv-${{
steps.full-python-version.outputs.
version }}-${{ hashFiles('**/poetry.lock') }}
-
name
:
Install dependencies
run
:
|
source $HOME/.poetry/env
...
...
@@ -94,6 +102,11 @@ jobs:
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Get full python version
id
:
full-python-version
shell
:
bash
run
:
|
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
-
name
:
Install and setup Poetry
run
:
|
python get-poetry.py --preview -y
...
...
@@ -103,7 +116,7 @@ jobs:
uses
:
actions/cache@v1
with
:
path
:
.venv
key
:
${{ runner.os }}-venv-${{
matrix.python-
version }}-${{ hashFiles('**/poetry.lock') }}
key
:
${{ runner.os }}-venv-${{
steps.full-python-version.outputs.
version }}-${{ hashFiles('**/poetry.lock') }}
-
name
:
Install dependencies
run
:
|
$env:Path += ";$env:Userprofile\.poetry\bin"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment