Commit 4ebcd828 by Sébastien Eustace Committed by Arun Babu Neelicattu

Implement a new bootstrapping method

parent 73794792
......@@ -39,14 +39,21 @@ jobs:
- name: Bootstrap poetry
shell: bash
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install .
run: python install-poetry.py -y
- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Path for Windows
if: ${{ matrix.os == 'Windows' }}
shell: bash
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
- name: Configure poetry
shell: bash
run: python -m poetry config virtualenvs.in-project true
run: poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v2
......@@ -58,12 +65,12 @@ jobs:
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: timeout 10s python -m poetry run pip --version || rm -rf .venv
run: timeout 10s poetry run pip --version || rm -rf .venv
- name: Install dependencies
shell: bash
run: python -m poetry install
run: poetry install
- name: Run pytest
shell: bash
run: python -m poetry run python -m pytest -p no:sugar -q tests/
run: poetry run python -m pytest -p no:sugar -q 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