Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
7aa7884
1
Parent(s):
31ecc71
Remove use of custom env tests
Browse files- .github/workflows/CI.yml +0 -2
- .github/workflows/CI_Windows.yml +0 -2
- .github/workflows/CI_docker.yml +1 -1
- .github/workflows/CI_docker_large_nightly.yml +1 -1
- .github/workflows/CI_large_nightly.yml +0 -3
- .github/workflows/CI_mac.yml +0 -2
- pysr/param_groupings.yml +0 -1
- pysr/sr.py +0 -1
- pysr/test/__main__.py +1 -2
.github/workflows/CI.yml
CHANGED
@@ -78,8 +78,6 @@ jobs:
|
|
78 |
- name: "Run Torch tests"
|
79 |
run: coverage run --append --source=pysr --omit='*/test/*' -m pysr test torch
|
80 |
if: ${{ matrix.test-id == 'main' }}
|
81 |
-
- name: "Run custom env tests"
|
82 |
-
run: coverage run --append --source=pysr --omit='*/test/*' -m pysr test env
|
83 |
- name: "Coveralls"
|
84 |
env:
|
85 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
78 |
- name: "Run Torch tests"
|
79 |
run: coverage run --append --source=pysr --omit='*/test/*' -m pysr test torch
|
80 |
if: ${{ matrix.test-id == 'main' }}
|
|
|
|
|
81 |
- name: "Coveralls"
|
82 |
env:
|
83 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
.github/workflows/CI_Windows.yml
CHANGED
@@ -62,5 +62,3 @@ jobs:
|
|
62 |
run: pip install torch # (optional import)
|
63 |
- name: "Run Torch tests"
|
64 |
run: python -m pysr test torch
|
65 |
-
- name: "Run custom env tests"
|
66 |
-
run: python -m pysr test env
|
|
|
62 |
run: pip install torch # (optional import)
|
63 |
- name: "Run Torch tests"
|
64 |
run: python -m pysr test torch
|
|
|
|
.github/workflows/CI_docker.yml
CHANGED
@@ -37,4 +37,4 @@ jobs:
|
|
37 |
- name: Build docker
|
38 |
run: docker build --platform=${{ matrix.arch }} -t pysr .
|
39 |
- name: Test docker
|
40 |
-
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr test main && python3 -m pysr test cli
|
|
|
37 |
- name: Build docker
|
38 |
run: docker build --platform=${{ matrix.arch }} -t pysr .
|
39 |
- name: Test docker
|
40 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr test main && python3 -m pysr test cli'
|
.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 }} --build-arg PYVERSION=${{ matrix.python-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
|
|
|
33 |
- name: Build docker
|
34 |
run: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-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'
|
.github/workflows/CI_large_nightly.yml
CHANGED
@@ -46,6 +46,3 @@ jobs:
|
|
46 |
run: |
|
47 |
python -m pysr test main
|
48 |
python -m pysr test cli
|
49 |
-
- name: "Run new env test"
|
50 |
-
run: python -m pysr test env
|
51 |
-
if: ${{ !(matrix.os == 'windows-latest' && matrix.python-version == '3.7') }}
|
|
|
46 |
run: |
|
47 |
python -m pysr test main
|
48 |
python -m pysr test cli
|
|
|
|
|
|
.github/workflows/CI_mac.yml
CHANGED
@@ -66,5 +66,3 @@ jobs:
|
|
66 |
run: pip install torch # (optional import)
|
67 |
- name: "Run Torch tests"
|
68 |
run: python -m pysr test torch
|
69 |
-
- name: "Run custom env tests"
|
70 |
-
run: python -m pysr test env
|
|
|
66 |
run: pip install torch # (optional import)
|
67 |
- name: "Run Torch tests"
|
68 |
run: python -m pysr test torch
|
|
|
|
pysr/param_groupings.yml
CHANGED
@@ -88,7 +88,6 @@
|
|
88 |
- temp_equation_file
|
89 |
- tempdir
|
90 |
- delete_tempfiles
|
91 |
-
- julia_project
|
92 |
- update
|
93 |
- julia_kwargs
|
94 |
- Exporting the Results:
|
|
|
88 |
- temp_equation_file
|
89 |
- tempdir
|
90 |
- delete_tempfiles
|
|
|
91 |
- update
|
92 |
- julia_kwargs
|
93 |
- Exporting the Results:
|
pysr/sr.py
CHANGED
@@ -834,7 +834,6 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
834 |
self.temp_equation_file = temp_equation_file
|
835 |
self.tempdir = tempdir
|
836 |
self.delete_tempfiles = delete_tempfiles
|
837 |
-
self.julia_project = julia_project
|
838 |
self.update = update
|
839 |
self.output_jax_format = output_jax_format
|
840 |
self.output_torch_format = output_torch_format
|
|
|
834 |
self.temp_equation_file = temp_equation_file
|
835 |
self.tempdir = tempdir
|
836 |
self.delete_tempfiles = delete_tempfiles
|
|
|
837 |
self.update = update
|
838 |
self.output_jax_format = output_jax_format
|
839 |
self.output_torch_format = output_torch_format
|
pysr/test/__main__.py
CHANGED
@@ -9,6 +9,5 @@ if __name__ == "__main__":
|
|
9 |
parser.add_argument(
|
10 |
"test",
|
11 |
nargs="*",
|
12 |
-
help="DEPRECATED. Use `python -m pysr test [tests...]` instead."
|
13 |
-
# help="Test to run. One or more of 'main', 'env', 'jax', 'torch', 'cli'.",
|
14 |
)
|
|
|
9 |
parser.add_argument(
|
10 |
"test",
|
11 |
nargs="*",
|
12 |
+
help="DEPRECATED. Use `python -m pysr test [tests...]` instead.",
|
|
|
13 |
)
|