Skip to content

Commit

Permalink
Fix version assertion for earlier Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 8, 2024
1 parent 73e8a1a commit 06aebb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
pip install .
python -c 'import pysr'
- name: "Assert Julia version"
run: |
python3 -c "from pysr import jl; assert jl.VERSION == jl.seval('v\"${{ matrix.julia-version }}\"')"
if: ${{ matrix.julia-version != '1'}}
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"
- name: "Install Coverage tool"
run: pip install coverage coveralls
- name: "Run tests"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI_large_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
pip install .
python -c 'import pysr'
- name: "Assert Julia version"
run: |
python3 -c "from pysr import jl; assert jl.VERSION == jl.seval('v\"${{ matrix.julia-version }}\"')"
if: ${{ matrix.julia-version != '1'}}
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"
- name: "Run tests"
run: |
python -m pysr test main
Expand Down

0 comments on commit 06aebb6

Please sign in to comment.