Skip to content

Commit

Permalink
Implement a new bootstrapping method
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Feb 19, 2021
1 parent 6eaa298 commit c58361c
Show file tree
Hide file tree
Showing 2 changed files with 898 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,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
Expand All @@ -57,12 +64,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 -v tests
run: poetry run python -m pytest -v tests
Loading

0 comments on commit c58361c

Please sign in to comment.