MilesCranmer commited on
Commit
34688fd
1 Parent(s): 3538029

Enable coveralls

Browse files
Files changed (1) hide show
  1. .github/workflows/CI.yml +9 -2
.github/workflows/CI.yml CHANGED
@@ -59,14 +59,21 @@ jobs:
59
  python -m pip install --upgrade pip
60
  pip install -r requirements.txt
61
  python setup.py install
 
 
62
  - name: "Install JAX"
63
  if: matrix.os != 'windows-latest'
64
  run: pip install jax jaxlib # (optional import)
65
  shell: bash
66
  - name: "Run tests"
67
- run: python test/test.py
68
  shell: bash
69
  - name: "Run JAX tests"
70
  if: matrix.os != 'windows-latest'
71
- run: python test/test_jax.py
72
  shell: bash
 
 
 
 
 
 
59
  python -m pip install --upgrade pip
60
  pip install -r requirements.txt
61
  python setup.py install
62
+ - name: "Install Coverage tool"
63
+ run: pip install coverage
64
  - name: "Install JAX"
65
  if: matrix.os != 'windows-latest'
66
  run: pip install jax jaxlib # (optional import)
67
  shell: bash
68
  - name: "Run tests"
69
+ run: coverage run --source=pysr --omit=pysr/feynman_problems.py test/test.py
70
  shell: bash
71
  - name: "Run JAX tests"
72
  if: matrix.os != 'windows-latest'
73
+ run: coverage run --append --source=pysr --omit=pysr/feynman_problems.py test/test_jax.py
74
  shell: bash
75
+ - name: Coveralls
76
+ uses: coverallsapp/github-action@master
77
+ with:
78
+ github-token: ${{ secrets.GITHUB_TOKEN }}
79
+ path-to-lcov: .coverage