Skip to content

Commit

Permalink
Merge pull request #353 from gaphor/poetry-constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar authored Jul 17, 2023
2 parents 150255e + a595a4f commit 31d0e26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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.5.1
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [created, published]

env:
POETRY_VERSION: 1.5.1
python-version: '3.11'

jobs:
skip-check:
Expand All @@ -33,6 +33,11 @@ jobs:
python-version: '3.x'
- name: Lint with Pre-commit
uses: pre-commit/action@v3.0.0
- name: Check Poetry lock file integrity
run: |
pipx install --python python${{ env.python-version }} --pip-args=--constraint=.github/constraints.txt poetry
poetry config virtualenvs.in-project true
poetry check
build:
needs: lint
Expand All @@ -58,7 +63,7 @@ jobs:
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==$POETRY_VERSION
pipx install --python python${{ matrix.python-version }} --pip-args=--constraint=.github/constraints.txt poetry
poetry config virtualenvs.in-project true
- name: Collect Project Data
id: meta
Expand Down

0 comments on commit 31d0e26

Please # to comment.