Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cernyd authored Dec 17, 2023
1 parent d234301 commit 76c33f3
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Poetry Action
# You may pin to the exact commit or the version.
# uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
source $(poetry env info --path)/bin/activate
poetry install --no-interaction --with dev
source .venv/bin/activate
- name: Lint with flake8
run: |
flake8 .
Expand All @@ -45,12 +51,18 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Poetry Action
# You may pin to the exact commit or the version.
# uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
source $(poetry env info --path)/bin/activate
poetry install --no-interaction --with dev
source .venv/bin/activate
- name: Test with pytest
run: |
pytest

0 comments on commit 76c33f3

Please sign in to comment.