Skip to content

Commit

Permalink
Update GH Action to use Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshiebert committed Nov 15, 2023
1 parent 0b23054 commit bfef491
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
run: |
apk upgrade
apk add libxml2-dev libxslt-dev
pip install -U pip
pip install pipenv==2022.3.28 --ignore-installed
- name: Install python dependencies
- name: Install Poetry
run: |
pipenv install --deploy --dev
pipenv run pip install .
curl -sSL https://install.python-poetry.org | python3 -
- name: Install python dependencies
run: |
poetry install --dev
- name: Test with pytest (full)
if: github.ref == 'refs/heads/master'
run: |
pipenv run py.test -m "not online" -v
poetry run py.test -m "not online" -v
- name: Test with pytest (fast)
if: github.ref != 'refs/heads/master'
run: |
pipenv run py.test -m "not online and not slow" -v
poetry run py.test -m "not online and not slow" -v

0 comments on commit bfef491

Please sign in to comment.