MilesCranmer commited on
Commit
58c6697
·
1 Parent(s): 2f38c9c

Fix coverage run by cd to test dir

Browse files
Files changed (1) hide show
  1. .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: 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
  env:
77
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78
- run: coveralls --service=github
 
 
 
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