Commit 2986076b by Arun Babu Neelicattu

ci: bootstrap poetry instead of using installer

parent 3ae62a37
...@@ -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: python -m poetry 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: python -m poetry 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: python -m poetry run python -m pip install pip -U
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
run: poetry install run: python -m poetry install
- name: Run pytest - name: Run pytest
shell: bash shell: bash
run: poetry run python -m pytest -v tests run: python -m poetry run python -m pytest -v tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment