Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
acb3fea
1
Parent(s):
e1e5d77
Add custom env test to CI
Browse files
.github/workflows/CI.yml
CHANGED
@@ -69,6 +69,8 @@ jobs:
|
|
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 test.test_torch
|
|
|
|
|
72 |
- name: Coveralls
|
73 |
env:
|
74 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -121,6 +123,8 @@ jobs:
|
|
121 |
run: python3 -m pip install coverage coveralls
|
122 |
- name: "Run tests"
|
123 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
|
|
|
|
124 |
- name: Coveralls
|
125 |
env:
|
126 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
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 test.test_torch
|
72 |
+
- name: "Run custom env tests"
|
73 |
+
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_env
|
74 |
- name: Coveralls
|
75 |
env:
|
76 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
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 test.test
|
126 |
+
- name: "Run custom env tests"
|
127 |
+
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_env
|
128 |
- name: Coveralls
|
129 |
env:
|
130 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
.github/workflows/CI_Windows.yml
CHANGED
@@ -63,3 +63,5 @@ jobs:
|
|
63 |
run: pip install torch # (optional import)
|
64 |
- name: "Run Torch tests"
|
65 |
run: python -m unittest test.test_torch
|
|
|
|
|
|
63 |
run: pip install torch # (optional import)
|
64 |
- name: "Run Torch tests"
|
65 |
run: python -m unittest test.test_torch
|
66 |
+
- name: "Run custom env tests"
|
67 |
+
run: python -m unittest test.test_env
|
.github/workflows/CI_conda_forge.yml
CHANGED
@@ -34,4 +34,4 @@ jobs:
|
|
34 |
- name: "Install pysr-forge"
|
35 |
run: conda activate test && mamba install pysr
|
36 |
- name: "Run tests"
|
37 |
-
run: conda activate test && python3 -m unittest test.test
|
|
|
34 |
- name: "Install pysr-forge"
|
35 |
run: conda activate test && mamba install pysr
|
36 |
- name: "Run tests"
|
37 |
+
run: conda activate test && python3 -m unittest test.test && python3 -m unittest test.test_env
|
.github/workflows/CI_docker.yml
CHANGED
@@ -38,4 +38,4 @@ jobs:
|
|
38 |
- name: Build docker
|
39 |
run: docker build -t pysr --build-arg ARCH=${{ matrix.arch }} --build-arg VERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
40 |
- name: Test docker
|
41 |
-
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test'
|
|
|
38 |
- name: Build docker
|
39 |
run: docker build -t pysr --build-arg ARCH=${{ matrix.arch }} --build-arg VERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
40 |
- name: Test docker
|
41 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test && python3 -m unittest test.test_env'
|
.github/workflows/CI_docker_large_nightly.yml
CHANGED
@@ -31,4 +31,4 @@ jobs:
|
|
31 |
- name: Build docker
|
32 |
run: docker build -t pysr --build-arg ARCH=${{ matrix.arch }} --build-arg VERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
33 |
- name: Test docker
|
34 |
-
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test'
|
|
|
31 |
- name: Build docker
|
32 |
run: docker build -t pysr --build-arg ARCH=${{ matrix.arch }} --build-arg VERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
|
33 |
- name: Test docker
|
34 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test && python3 -m unittest test.test_env'
|
.github/workflows/CI_large_nightly.yml
CHANGED
@@ -41,4 +41,4 @@ jobs:
|
|
41 |
python setup.py install
|
42 |
python -c 'import pysr; pysr.install()'
|
43 |
- name: "Run tests"
|
44 |
-
run: python -m unittest test.test
|
|
|
41 |
python setup.py install
|
42 |
python -c 'import pysr; pysr.install()'
|
43 |
- name: "Run tests"
|
44 |
+
run: python -m unittest test.test && python -m unittest test.test_env
|
.github/workflows/CI_mac.yml
CHANGED
@@ -67,3 +67,5 @@ jobs:
|
|
67 |
run: pip install torch # (optional import)
|
68 |
- name: "Run Torch tests"
|
69 |
run: python -m unittest test.test_torch
|
|
|
|
|
|
67 |
run: pip install torch # (optional import)
|
68 |
- name: "Run Torch tests"
|
69 |
run: python -m unittest test.test_torch
|
70 |
+
- name: "Run custom env tests"
|
71 |
+
run: python -m unittest test.test_env
|