Skip to content

Commit

Permalink
Update poetry version (#125)
Browse files Browse the repository at this point in the history
* Update poetry version in tests

* set poetry version 1.3.1

* remove source env files

* temporarily disable safety checks
  • Loading branch information
thomasborgen authored Jan 4, 2023
1 parent 8d999ef commit 78d8286
Show file tree
Hide file tree
Showing 3 changed files with 928 additions and 836 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,34 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
curl -sSL \
"https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: "1.3.1"
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: |
source "$HOME/.poetry/env"
poetry config virtualenvs.in-project true
poetry install
- name: Update pip to latest version
run: |
source "$HOME/.poetry/env"
poetry run python -m pip install -U pip
- name: Run code quality checks
run: |
source "$HOME/.poetry/env"
poetry check
poetry run pip check
poetry run flake8 .
poetry run mypy .
poetry run safety check --full-report
# poetry run safety check --full-report
- name: Run pytest
run: |
source "$HOME/.poetry/env"
poetry run pytest .
- name: Upload coverage to Codecov
if: matrix.python-version == 3.8
Expand Down
Loading

0 comments on commit 78d8286

Please sign in to comment.