Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nichollsh committed Sep 6, 2024
1 parent 3ce1862 commit 86c2285
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}

# - name: Install dependencies
# if: steps.cache-virtualenv.outputs.cache-hit != 'true'
# run: |
- name: Install dependencies
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
run: |
python -m pip install -e .[develop]
- name: Test with pytest
run: |
python -m pip install -e .[develop]
coverage run -m pytest
- name: Report coverage
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ source = ["calliope"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = [
".", "src",
]

[tool.ruff]
line-length = 96
Expand Down

0 comments on commit 86c2285

Please sign in to comment.