From 853d9d1b39b2fed2fe49d05475bf8b134142e8fb Mon Sep 17 00:00:00 2001 From: Benjamin <3benknight@gmail.com> Date: Thu, 25 Jul 2024 12:58:04 -0400 Subject: [PATCH] Simplified testing file. Fixed dependency error in the toml. --- .github/workflows/test.yml | 20 ++++++-------------- pyproject.toml | 4 +++- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d17c42d..affc9c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 213046a..ef553b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,8 @@ authors = [ { name = "Chris R. Vernon", email = "chris.vernon@pnnl.gov" } ] 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", @@ -23,7 +25,7 @@ dependencies = [ "matplotlib>=3.7.2", "xarray>=2023.8.0", "toml>=0.10.2", - "requests=*" + "requests" ] [project.optional-dependencies]