Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
e550111
1
Parent(s):
e0dcda3
Ensure that testing files are omitted from coverage
Browse files- .github/workflows/CI.yml +6 -6
.github/workflows/CI.yml
CHANGED
@@ -60,17 +60,17 @@ jobs:
|
|
60 |
- name: "Install Coverage tool"
|
61 |
run: pip install coverage coveralls
|
62 |
- name: "Run tests"
|
63 |
-
run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test
|
64 |
- name: "Install JAX"
|
65 |
run: pip install jax jaxlib # (optional import)
|
66 |
- name: "Run JAX tests"
|
67 |
-
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test_jax
|
68 |
- name: "Install Torch"
|
69 |
run: pip install torch # (optional import)
|
70 |
- name: "Run Torch tests"
|
71 |
-
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test_torch
|
72 |
- name: "Run custom env tests"
|
73 |
-
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test_env
|
74 |
- name: Coveralls
|
75 |
env:
|
76 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -122,9 +122,9 @@ jobs:
|
|
122 |
- name: "Install Coverage tool"
|
123 |
run: python3 -m pip install coverage coveralls
|
124 |
- name: "Run tests"
|
125 |
-
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test
|
126 |
- name: "Run custom env tests"
|
127 |
-
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest pysr.test.test_env
|
128 |
- name: Coveralls
|
129 |
env:
|
130 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
60 |
- name: "Install Coverage tool"
|
61 |
run: pip install coverage coveralls
|
62 |
- name: "Run tests"
|
63 |
+
run: coverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test
|
64 |
- name: "Install JAX"
|
65 |
run: pip install jax jaxlib # (optional import)
|
66 |
- name: "Run JAX tests"
|
67 |
+
run: coverage run --append --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test_jax
|
68 |
- name: "Install Torch"
|
69 |
run: pip install torch # (optional import)
|
70 |
- name: "Run Torch tests"
|
71 |
+
run: coverage run --append --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test_torch
|
72 |
- name: "Run custom env tests"
|
73 |
+
run: coverage run --append --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test_env
|
74 |
- name: Coveralls
|
75 |
env:
|
76 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
122 |
- name: "Install Coverage tool"
|
123 |
run: python3 -m pip install coverage coveralls
|
124 |
- name: "Run tests"
|
125 |
+
run: coverage run --append --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test
|
126 |
- name: "Run custom env tests"
|
127 |
+
run: coverage run --append --source=pysr --omit='*/test/*,*/feynman_problems.py' -m unittest pysr.test.test_env
|
128 |
- name: Coveralls
|
129 |
env:
|
130 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|