Skip to content

Commit

Permalink
install poetry in workflows (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimJeg authored Nov 13, 2024
1 parent 9cb58c7 commit 2536a98
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.10.11
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2

- run: poetry install --with dev
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH # Add Poetry to the PATH
- name: Install dependencies
run: poetry install --with dev

- name: Run style checks
run: make style
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.10.11
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2

- run: poetry install --with dev
- uses: actions/checkout@v3
- run: make test
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH # Add Poetry to the PATH
- name: Install dependencies
run: poetry install --with dev

- run: make test

0 comments on commit 2536a98

Please sign in to comment.