Spaces:
Running
Running
MilesCranmer
commited on
Fix version assertion for earlier Julia
Browse files
.github/workflows/CI.yml
CHANGED
@@ -61,8 +61,8 @@ jobs:
|
|
61 |
pip install .
|
62 |
python -c 'import pysr'
|
63 |
- name: "Assert Julia version"
|
64 |
-
|
65 |
-
|
66 |
- name: "Install Coverage tool"
|
67 |
run: pip install coverage coveralls
|
68 |
- name: "Run tests"
|
|
|
61 |
pip install .
|
62 |
python -c 'import pysr'
|
63 |
- name: "Assert Julia version"
|
64 |
+
if: ${{ matrix.julia-version != '1'}}
|
65 |
+
run: python3 -c "from pysr import jl; assert jl.VERSION.major == jl.seval('v\"${{ matrix.julia-version }}\"').major; assert jl.VERSION.minor == jl.seval('v\"${{ matrix.julia-version }}\"').minor"
|
66 |
- name: "Install Coverage tool"
|
67 |
run: pip install coverage coveralls
|
68 |
- name: "Run tests"
|
.github/workflows/CI_large_nightly.yml
CHANGED
@@ -43,8 +43,8 @@ jobs:
|
|
43 |
pip install .
|
44 |
python -c 'import pysr'
|
45 |
- name: "Assert Julia version"
|
46 |
-
|
47 |
-
|
48 |
- name: "Run tests"
|
49 |
run: |
|
50 |
python -m pysr test main
|
|
|
43 |
pip install .
|
44 |
python -c 'import pysr'
|
45 |
- name: "Assert Julia version"
|
46 |
+
if: ${{ matrix.julia-version != '1'}}
|
47 |
+
run: python3 -c "from pysr import jl; assert jl.VERSION.major == jl.seval('v\"${{ matrix.julia-version }}\"').major; assert jl.VERSION.minor == jl.seval('v\"${{ matrix.julia-version }}\"').minor"
|
48 |
- name: "Run tests"
|
49 |
run: |
|
50 |
python -m pysr test main
|