Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
1163194
1
Parent(s):
92ac433
Add CLI tests to CI
Browse files
.github/workflows/CI.yml
CHANGED
@@ -58,7 +58,9 @@ jobs:
|
|
58 |
- name: "Install Coverage tool"
|
59 |
run: pip install coverage coveralls
|
60 |
- name: "Run tests"
|
61 |
-
run:
|
|
|
|
|
62 |
- name: "Install JAX"
|
63 |
run: pip install jax jaxlib # (optional import)
|
64 |
- name: "Run JAX tests"
|
|
|
58 |
- name: "Install Coverage tool"
|
59 |
run: pip install coverage coveralls
|
60 |
- name: "Run tests"
|
61 |
+
run: |
|
62 |
+
coverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m pysr.test main
|
63 |
+
coverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m pysr.test cli
|
64 |
- name: "Install JAX"
|
65 |
run: pip install jax jaxlib # (optional import)
|
66 |
- name: "Run JAX tests"
|
.github/workflows/CI_Windows.yml
CHANGED
@@ -56,7 +56,9 @@ jobs:
|
|
56 |
python setup.py install
|
57 |
python -m pysr install
|
58 |
- name: "Run tests"
|
59 |
-
run:
|
|
|
|
|
60 |
- name: "Install Torch"
|
61 |
run: pip install torch # (optional import)
|
62 |
- name: "Run Torch tests"
|
|
|
56 |
python setup.py install
|
57 |
python -m pysr install
|
58 |
- name: "Run tests"
|
59 |
+
run: |
|
60 |
+
python -m pysr.test main
|
61 |
+
python -m pysr.test cli
|
62 |
- name: "Install Torch"
|
63 |
run: pip install torch # (optional import)
|
64 |
- name: "Run Torch tests"
|
.github/workflows/CI_docker.yml
CHANGED
@@ -39,4 +39,4 @@ jobs:
|
|
39 |
- name: Build docker
|
40 |
run: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
41 |
- name: Test docker
|
42 |
-
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test env'
|
|
|
39 |
- name: Build docker
|
40 |
run: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
41 |
- name: Test docker
|
42 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test cli && python3 -m pysr.test env'
|
.github/workflows/CI_docker_large_nightly.yml
CHANGED
@@ -33,4 +33,4 @@ jobs:
|
|
33 |
- name: Build docker
|
34 |
run: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} .
|
35 |
- name: Test docker
|
36 |
-
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test env'
|
|
|
33 |
- name: Build docker
|
34 |
run: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} .
|
35 |
- name: Test docker
|
36 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test cli && python3 -m pysr.test env'
|
.github/workflows/CI_large_nightly.yml
CHANGED
@@ -44,7 +44,9 @@ jobs:
|
|
44 |
python setup.py install
|
45 |
python -m pysr install
|
46 |
- name: "Run tests"
|
47 |
-
run:
|
|
|
|
|
48 |
- name: "Run new env test"
|
49 |
run: python -m pysr.test env
|
50 |
if: ${{ !(matrix.os == 'windows-latest' && matrix.python-version == '3.7') }}
|
|
|
44 |
python setup.py install
|
45 |
python -m pysr install
|
46 |
- name: "Run tests"
|
47 |
+
run: |
|
48 |
+
python -m pysr.test main
|
49 |
+
python -m pysr.test cli
|
50 |
- name: "Run new env test"
|
51 |
run: python -m pysr.test env
|
52 |
if: ${{ !(matrix.os == 'windows-latest' && matrix.python-version == '3.7') }}
|
.github/workflows/CI_mac.yml
CHANGED
@@ -56,7 +56,9 @@ jobs:
|
|
56 |
python setup.py install
|
57 |
python -m pysr install
|
58 |
- name: "Run tests"
|
59 |
-
run:
|
|
|
|
|
60 |
- name: "Install JAX"
|
61 |
run: pip install jax jaxlib # (optional import)
|
62 |
- name: "Run JAX tests"
|
|
|
56 |
python setup.py install
|
57 |
python -m pysr install
|
58 |
- name: "Run tests"
|
59 |
+
run: |
|
60 |
+
python -m pysr.test main
|
61 |
+
python -m pysr.test cli
|
62 |
- name: "Install JAX"
|
63 |
run: pip install jax jaxlib # (optional import)
|
64 |
- name: "Run JAX tests"
|