Skip to content

Commit

Permalink
Modify CI GitHub Action
Browse files Browse the repository at this point in the history
1) Modify working directory so that pytest uses installed version of the library (in site-packages), and not that of Github repository
2) Include tests in pyproject.toml

Related to Open-Minds-Lab#29
  • Loading branch information
sinhaharsh committed Feb 9, 2024
1 parent b5bfe9a commit 435fc76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
run: |
make lint
- name: Test with pytest
working-directory: ${{ runner.temp }}
run: |
pytest
pytest --pyargs MRdataset
py312:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -66,5 +67,6 @@ jobs:
run: |
make lint
- name: Test with pytest
working-directory: ${{ runner.temp }}
run: |
pytest
pytest --pyargs MRdataset
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ Documentation = "https://open-minds-lab.github.io/MRdataset/"
include = [
"MRdataset/*.py",
"MRdataset/resources/*",
"MRdataset/tests/*",
"MRdataset/tests/resources/*",
]
exclude = [
"MRdataset/tests/*",
]

[tool.hatch.version]
Expand Down

0 comments on commit 435fc76

Please sign in to comment.