Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
ed0700f
1
Parent(s):
c0fe352
Add conda test to coverage
Browse files
.github/workflows/CI_conda.yml
CHANGED
@@ -68,9 +68,30 @@ jobs:
|
|
68 |
python3 -m pip install .
|
69 |
python3 -c 'import pysr; pysr.install()'
|
70 |
shell: bash -l {0}
|
|
|
|
|
|
|
71 |
- name: "Ensure that static libpython warning appears"
|
72 |
-
run:
|
73 |
shell: bash -l {0}
|
74 |
- name: "Run tests"
|
75 |
-
run:
|
76 |
-
shell: bash -l {0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
python3 -m pip install .
|
69 |
python3 -c 'import pysr; pysr.install()'
|
70 |
shell: bash -l {0}
|
71 |
+
- name: "Install Coverage tool"
|
72 |
+
run: python3 -m pip install coverage coveralls
|
73 |
+
shell: bash -l {0}
|
74 |
- name: "Ensure that static libpython warning appears"
|
75 |
+
run: coverage run --source=pysr --omit='*/feynman_problems.py' test/test_static_libpython_warning.py
|
76 |
shell: bash -l {0}
|
77 |
- name: "Run tests"
|
78 |
+
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
79 |
+
shell: bash -l {0}
|
80 |
+
- name: Coveralls
|
81 |
+
env:
|
82 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
83 |
+
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
|
84 |
+
COVERALLS_PARALLEL: true
|
85 |
+
run: coveralls --service=github
|
86 |
+
coveralls:
|
87 |
+
name: Indicate completion to coveralls.io
|
88 |
+
needs: test
|
89 |
+
runs-on: ubuntu-latest
|
90 |
+
container: python:3-slim
|
91 |
+
steps:
|
92 |
+
- name: Finished
|
93 |
+
env:
|
94 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
95 |
+
run: |
|
96 |
+
pip install coveralls
|
97 |
+
coveralls --finish
|