Skip to content

Commit

Permalink
Simplified testing file. Fixed dependency error in the toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
3benknight committed Jul 25, 2024
1 parent c98648f commit 853d9d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,10 @@ jobs:
- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install Xanthos
run: pip install git+https://github.com/JGCRI/xanthos@dev-testing

- name: Install test dependencies
run: pip install pytest pytest-cov

- name: Run tests
run: pytest --cov=xanthos --cov-report=xml
- name: Clone Xanthos repository
run: git clone --branch dev-testing https://github.com/JGCRI/xanthos.git

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true
- name: Install Xanthos
run: |
cd xanthos
pip install .
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ authors = [
{ name = "Chris R. Vernon", email = "[email protected]" }
]
urls = { "Homepage" = "https://github.com/JGCRI/xanthos", "Repository" = "https://github.com/JGCRI/xanthos", "Documentation" = "https://github.com/JGCRI/xanthos/wiki" }

[project.dependencies]
dependencies = [
"numpy>=1.24.4",
"scipy>=1.6",
Expand All @@ -23,7 +25,7 @@ dependencies = [
"matplotlib>=3.7.2",
"xarray>=2023.8.0",
"toml>=0.10.2",
"requests=*"
"requests"
]

[project.optional-dependencies]
Expand Down

0 comments on commit 853d9d1

Please sign in to comment.