Spaces:
Sleeping
Sleeping
Commit
·
ebef609
1
Parent(s):
cd171e8
Clean up coveralls code
Browse files- .github/workflows/CI.yml +3 -11
.github/workflows/CI.yml
CHANGED
|
@@ -66,26 +66,18 @@ jobs:
|
|
| 66 |
run: pip install jax jaxlib # (optional import)
|
| 67 |
shell: bash
|
| 68 |
- name: "Run tests"
|
| 69 |
-
run:
|
| 70 |
-
cd test
|
| 71 |
-
coverage run --source=pysr --omit=feynman_problems.py -m unittest test
|
| 72 |
-
cd ..
|
| 73 |
shell: bash
|
| 74 |
- name: "Run JAX tests"
|
| 75 |
if: matrix.os != 'windows-latest'
|
| 76 |
-
run:
|
| 77 |
-
cd test
|
| 78 |
-
coverage run --append --source=pysr --omit=feynman_problems.py -m unittest test_jax
|
| 79 |
-
cd ..
|
| 80 |
shell: bash
|
| 81 |
- name: Coveralls
|
| 82 |
env:
|
| 83 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 84 |
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
|
| 85 |
COVERALLS_PARALLEL: true
|
| 86 |
-
run:
|
| 87 |
-
cd test
|
| 88 |
-
coveralls --service=github
|
| 89 |
coveralls:
|
| 90 |
name: Indicate completion to coveralls.io
|
| 91 |
needs: test
|
|
|
|
| 66 |
run: pip install jax jaxlib # (optional import)
|
| 67 |
shell: bash
|
| 68 |
- name: "Run tests"
|
| 69 |
+
run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
|
|
|
|
|
|
|
|
|
| 70 |
shell: bash
|
| 71 |
- name: "Run JAX tests"
|
| 72 |
if: matrix.os != 'windows-latest'
|
| 73 |
+
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_jax
|
|
|
|
|
|
|
|
|
|
| 74 |
shell: bash
|
| 75 |
- name: Coveralls
|
| 76 |
env:
|
| 77 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 78 |
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
|
| 79 |
COVERALLS_PARALLEL: true
|
| 80 |
+
run: coveralls --service=github
|
|
|
|
|
|
|
| 81 |
coveralls:
|
| 82 |
name: Indicate completion to coveralls.io
|
| 83 |
needs: test
|