Skip to content

Commit

Permalink
Adds a pure torch environment and potentially fixes codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed Jun 26, 2024
1 parent 602e61b commit 8658505
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
environment: "min-ver"
- python-version: 3.11
environment: "full"
- python-version: 3.12
environment: "torch"

runs-on: ubuntu-latest

Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
run: |
coverage report
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
2 changes: 1 addition & 1 deletion devtools/conda-envs/min-deps-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:

# Testing
- autoflake
- black
- black
- codecov
- isort
- mypy
Expand Down
16 changes: 16 additions & 0 deletions devtools/conda-envs/torch-environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test
channels:
- conda-forge
dependencies:
# Base depends
- python >=3.9
- pytorch-cpu >=2.0,<3.0.0a

# Testing
- autoflake
- black
- codecov
- isort
- mypy
- pytest
- pytest-cov

0 comments on commit 8658505

Please sign in to comment.