Skip to content

Commit

Permalink
extras poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispyles committed Sep 1, 2024
1 parent 6b9e63e commit 9492d26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/run-docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,26 @@ jobs:
- uses: r-lib/actions/setup-pandoc@v2
if: ${{ steps.check-branch.outputs.run == 'true' }}

- uses: liskin/gh-pipx@v1
if: ${{ steps.check-branch.outputs.run == 'true' }}
with:
packages: >-
poetry
- uses: mamba-org/setup-micromamba@v1
if: ${{ steps.check-branch.outputs.run == 'true' }}
with:
environment-file: environment.yml
init-shell: >-
bash
cache-environment: true
cache-environment-key: requirements-${{ hashFiles('requirements*.txt') }}
cache-environment-key: requirements-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
if: ${{ steps.check-branch.outputs.run == 'true' }}
run: |
micromamba activate otter-grader
poetry install --with test --all-extras
- name: Install ottr
if: ${{ steps.check-branch.outputs.run == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
init-shell: >-
bash
cache-environment: true
cache-environment-key: requirements-${{ hashFiles('requirements*.txt') }}
cache-environment-key: requirements-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
run: |
Expand Down

0 comments on commit 9492d26

Please sign in to comment.