Skip to content

Commit

Permalink
add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao committed Aug 26, 2024
1 parent fdcd163 commit 4ce0c35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = depyf/explain/*
22 changes: 8 additions & 14 deletions .github/workflows/test_pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install pytest pytest-cov
python -m pip install setuptools
python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
python setup.py develop
Expand All @@ -43,18 +42,13 @@ jobs:
echo "success"
- name: Test with pytest
run: |
pytest --cov=depyf tests/test_pytorch/test_mp.py
pytest --cov=depyf tests/test_pytorch/test_no_graph.py
pytest --cov=depyf tests/test_pytorch/test_irregular.py
pytest --cov=depyf tests/test_pytorch/test_simple_graph.py
pytest --cov=depyf tests/test_pytorch/test_cellvars.py
pytest --cov=depyf tests/test_pytorch/spawn_tests.py
pytest --cov=depyf tests/test_pytorch/cmp_output.py
python tests/test_pytorch/test_mp.py
python tests/test_pytorch/test_no_graph.py
python tests/test_pytorch/test_irregular.py
python tests/test_pytorch/test_simple_graph.py
python tests/test_pytorch/test_cellvars.py
python tests/test_pytorch/spawn_tests.py
python tests/test_pytorch/cmp_output.py
python tests/test_pytorch/test_debug.py 2>&1 < tests/test_pytorch/debug_input.txt > tests/test_pytorch/debug_output.txt
cat tests/test_pytorch/debug_output.txt
python tests/test_pytorch/check_debug_output.py
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
python tests/test_pytorch/check_debug_output.py

0 comments on commit 4ce0c35

Please sign in to comment.