Spaces:
Sleeping
Sleeping
Commit
·
58c6697
1
Parent(s):
2f38c9c
Fix coverage run by cd to test dir
Browse files- .github/workflows/CI.yml +11 -3
.github/workflows/CI.yml
CHANGED
@@ -66,13 +66,21 @@ jobs:
|
|
66 |
run: pip install jax jaxlib # (optional import)
|
67 |
shell: bash
|
68 |
- name: "Run tests"
|
69 |
-
run:
|
|
|
|
|
|
|
70 |
shell: bash
|
71 |
- name: "Run JAX tests"
|
72 |
if: matrix.os != 'windows-latest'
|
73 |
-
run:
|
|
|
|
|
|
|
74 |
shell: bash
|
75 |
- name: Coveralls
|
76 |
env:
|
77 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
78 |
-
run:
|
|
|
|
|
|
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=pysr.feynman_problems -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=pysr.feynman_problems -m unittest test_jax
|
79 |
+
cd ..
|
80 |
shell: bash
|
81 |
- name: Coveralls
|
82 |
env:
|
83 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
84 |
+
run: |
|
85 |
+
cd test
|
86 |
+
coveralls --service=github
|