Skip to content

Commit a8fb66c

Browse files
CopilotAKB0700
andcommitted
Fix CI workflow to install dependencies using Poetry
Co-authored-by: AKB0700 <157992575+AKB0700@users.noreply.github.com>
1 parent 7efcee2 commit a8fb66c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,16 @@ jobs:
2424
uses: actions/setup-python@v3
2525
with:
2626
python-version: ${{ matrix.python-version }}
27+
- name: Install Poetry
28+
run: pip install poetry
2729
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest
31-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
run: poetry install --with dev
3231
- name: Lint with flake8
3332
run: |
3433
# stop the build if there are Python syntax errors or undefined names
35-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3635
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3837
- name: Test with pytest
3938
run: |
40-
pytest
39+
poetry run pytest

0 commit comments

Comments
 (0)