Skip to content

Commit

Permalink
Migrate to Poetry
Browse files Browse the repository at this point in the history
Signed-off-by: Allan Lewis <[email protected]>
  • Loading branch information
allanlewis committed Oct 16, 2023
1 parent 70d8542 commit 7fa4eeb
Show file tree
Hide file tree
Showing 5 changed files with 1,707 additions and 48 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: pip install poetry==1.3.*

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install flake8 pytest
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
run: poetry install --no-root

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 openleadr/ --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 openleadr/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 openleadr/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 openleadr/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -vv test/
run: poetry run pytest -vv test/
5 changes: 0 additions & 5 deletions dev_requirements.txt

This file was deleted.

Loading

0 comments on commit 7fa4eeb

Please sign in to comment.