Skip to content

Commit cd27ebb

Browse files
committed
Fix poetry.lock issues in CI
- Remove outdated poetry.lock file - Update CI to generate lock file if missing - This allows CI to create a fresh lock file with correct dependencies
1 parent 38aa142 commit cd27ebb

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
poetry-${{ runner.os }}-
3434
3535
- name: Install dependencies
36-
run: poetry install --no-interaction
36+
run: |
37+
poetry lock --no-update || poetry lock
38+
poetry install --no-interaction
3739
3840
- name: Run black
3941
run: poetry run black --check bizy tests
@@ -88,7 +90,9 @@ jobs:
8890
poetry-${{ runner.os }}-py${{ matrix.python-version }}-
8991
9092
- name: Install dependencies
91-
run: poetry install --no-interaction
93+
run: |
94+
poetry lock --no-update || poetry lock
95+
poetry install --no-interaction
9296
9397
- name: Run tests with coverage
9498
env:
@@ -118,7 +122,9 @@ jobs:
118122
uses: snok/install-poetry@v1
119123

120124
- name: Install dependencies
121-
run: poetry install --no-interaction
125+
run: |
126+
poetry lock --no-update || poetry lock
127+
poetry install --no-interaction
122128
123129
- name: Run bandit
124130
run: poetry run bandit -r bizy -f json -o bandit-report.json

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ nul
169169

170170
# Flake8 configuration
171171
.flake8
172+
173+
# Temporarily ignore poetry.lock while we fix dependencies
174+
# poetry.lock

0 commit comments

Comments
 (0)