Skip to content

Commit

Permalink
Update Poetry to version 1.6.1, use constraints file
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw authored and pbor committed Aug 27, 2023
1 parent 1340300 commit 05de239
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
poetry==1.6.1
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
python_version: '3.11'
poetry_version: '1.2.2'

name: CI

Expand All @@ -27,6 +26,11 @@ jobs:
python-version: ${{ env.python_version }}
- name: Lint with Pre-commit
uses: pre-commit/action@v3.0.0
- name: Check Poetry lock file integrity
run: |
python -m pip install --constraint=.github/constraints.txt poetry
poetry config virtualenvs.in-project true
poetry check
test:
needs: lint
Expand Down Expand Up @@ -54,9 +58,9 @@ jobs:
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
- name: Install Poetry
run: python -m pip install poetry==${{ env.poetry_version }}
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
run: |
python -m pip install --constraint=.github/constraints.txt poetry
poetry config virtualenvs.in-project true
- name: Install Python Dependencies
run: poetry install
- name: Install dependencies
Expand Down Expand Up @@ -100,9 +104,9 @@ jobs:
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
- name: Install Poetry
run: python -m pip install poetry==${{ env.poetry_version }}
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
run: |
python -m pip install --constraint=.github/constraints.txt poetry
poetry config virtualenvs.in-project true
- name: Install Python Dependencies
run: poetry install
# Temporarily move the preinstalled git, it causes errors related to cygwin.
Expand Down

0 comments on commit 05de239

Please sign in to comment.