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

Implement a new bootstrapping method

parent 73794792
...@@ -39,14 +39,21 @@ jobs: ...@@ -39,14 +39,21 @@ jobs:
- name: Bootstrap poetry - name: Bootstrap poetry
shell: bash shell: bash
run: | run: python install-poetry.py -y
python -m ensurepip
python -m pip install --upgrade pip - name: Update PATH
python -m pip install . 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 - name: Configure poetry
shell: bash shell: bash
run: python -m poetry config virtualenvs.in-project true run: poetry config virtualenvs.in-project true
- name: Set up cache - name: Set up cache
uses: actions/cache@v2 uses: actions/cache@v2
...@@ -58,12 +65,12 @@ jobs: ...@@ -58,12 +65,12 @@ 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: timeout 10s python -m poetry run pip --version || rm -rf .venv run: timeout 10s poetry run pip --version || rm -rf .venv
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
run: python -m poetry install run: poetry install
- name: Run pytest - name: Run pytest
shell: bash 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