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
2986076b
Commit
2986076b
authored
Sep 21, 2020
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: bootstrap poetry instead of using installer
parent
3ae62a37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
.github/workflows/main.yml
+9
-8
No files found.
.github/workflows/main.yml
View file @
2986076b
...
@@ -36,15 +36,16 @@ jobs:
...
@@ -36,15 +36,16 @@ jobs:
shell
:
bash
shell
:
bash
run
:
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
run
:
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
-
name
:
Install
poetry
-
name
:
Bootstrap
poetry
shell
:
bash
shell
:
bash
run
:
|
run
:
|
python get-poetry.py -y --preview
python -m ensurepip
echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
python -m pip install --upgrade pip
python -m pip install .
-
name
:
Configure poetry
-
name
:
Configure poetry
shell
:
bash
shell
:
bash
run
:
poetry config virtualenvs.in-project
true
run
:
p
ython -m p
oetry config virtualenvs.in-project
true
-
name
:
Set up cache
-
name
:
Set up cache
uses
:
actions/cache@v2
uses
:
actions/cache@v2
...
@@ -56,16 +57,16 @@ jobs:
...
@@ -56,16 +57,16 @@ jobs:
-
name
:
Ensure cache is healthy
-
name
:
Ensure cache is healthy
if
:
steps.cache.outputs.cache-hit == 'true'
if
:
steps.cache.outputs.cache-hit == 'true'
shell
:
bash
shell
:
bash
run
:
poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
run
:
p
ython -m p
oetry run pip --version >/dev/null 2>&1 || rm -rf .venv
-
name
:
Upgrade pip
-
name
:
Upgrade pip
shell
:
bash
shell
:
bash
run
:
poetry run python -m pip install pip -U
run
:
p
ython -m p
oetry run python -m pip install pip -U
-
name
:
Install dependencies
-
name
:
Install dependencies
shell
:
bash
shell
:
bash
run
:
poetry install
run
:
p
ython -m p
oetry install
-
name
:
Run pytest
-
name
:
Run pytest
shell
:
bash
shell
:
bash
run
:
poetry run python -m pytest -v tests
run
:
p
ython -m p
oetry run python -m pytest -v tests
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