Spaces:
Sleeping
Sleeping
Commit
·
eea7daa
1
Parent(s):
21b794b
Set default shell in all CIs
Browse files
.github/workflows/CI.yml
CHANGED
|
@@ -23,6 +23,9 @@ on:
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
| 26 |
strategy:
|
| 27 |
matrix:
|
| 28 |
julia-version: ['1.7.1']
|
|
@@ -36,7 +39,6 @@ jobs:
|
|
| 36 |
with:
|
| 37 |
version: ${{ matrix.julia-version }}
|
| 38 |
- name: "Change package server"
|
| 39 |
-
shell: bash
|
| 40 |
env:
|
| 41 |
JULIA_PKG_SERVER: ""
|
| 42 |
run: |
|
|
@@ -66,19 +68,14 @@ jobs:
|
|
| 66 |
run: pip install coverage coveralls
|
| 67 |
- name: "Run tests"
|
| 68 |
run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
| 69 |
-
shell: bash
|
| 70 |
- name: "Install JAX"
|
| 71 |
run: pip install jax jaxlib # (optional import)
|
| 72 |
-
shell: bash
|
| 73 |
- name: "Run JAX tests"
|
| 74 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_jax
|
| 75 |
-
shell: bash
|
| 76 |
- name: "Install Torch"
|
| 77 |
run: pip install torch # (optional import)
|
| 78 |
-
shell: bash
|
| 79 |
- name: "Run Torch tests"
|
| 80 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_torch
|
| 81 |
-
shell: bash
|
| 82 |
- name: Coveralls
|
| 83 |
env:
|
| 84 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -89,6 +86,9 @@ jobs:
|
|
| 89 |
name: Indicate completion to coveralls.io
|
| 90 |
needs: test
|
| 91 |
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
| 92 |
container: python:3-slim
|
| 93 |
steps:
|
| 94 |
- name: Finished
|
|
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
| 26 |
+
defaults:
|
| 27 |
+
run:
|
| 28 |
+
shell: bash -l {0}
|
| 29 |
strategy:
|
| 30 |
matrix:
|
| 31 |
julia-version: ['1.7.1']
|
|
|
|
| 39 |
with:
|
| 40 |
version: ${{ matrix.julia-version }}
|
| 41 |
- name: "Change package server"
|
|
|
|
| 42 |
env:
|
| 43 |
JULIA_PKG_SERVER: ""
|
| 44 |
run: |
|
|
|
|
| 68 |
run: pip install coverage coveralls
|
| 69 |
- name: "Run tests"
|
| 70 |
run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
|
|
|
| 71 |
- name: "Install JAX"
|
| 72 |
run: pip install jax jaxlib # (optional import)
|
|
|
|
| 73 |
- name: "Run JAX tests"
|
| 74 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_jax
|
|
|
|
| 75 |
- name: "Install Torch"
|
| 76 |
run: pip install torch # (optional import)
|
|
|
|
| 77 |
- name: "Run Torch tests"
|
| 78 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test_torch
|
|
|
|
| 79 |
- name: Coveralls
|
| 80 |
env:
|
| 81 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
| 86 |
name: Indicate completion to coveralls.io
|
| 87 |
needs: test
|
| 88 |
runs-on: ubuntu-latest
|
| 89 |
+
defaults:
|
| 90 |
+
run:
|
| 91 |
+
shell: bash -l {0}
|
| 92 |
container: python:3-slim
|
| 93 |
steps:
|
| 94 |
- name: Finished
|
.github/workflows/CI_Windows.yml
CHANGED
|
@@ -23,6 +23,9 @@ on:
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
| 26 |
strategy:
|
| 27 |
matrix:
|
| 28 |
julia-version: ['1.7.1']
|
|
@@ -36,7 +39,6 @@ jobs:
|
|
| 36 |
with:
|
| 37 |
version: ${{ matrix.julia-version }}
|
| 38 |
- name: "Change package server"
|
| 39 |
-
shell: bash
|
| 40 |
env:
|
| 41 |
JULIA_PKG_SERVER: ""
|
| 42 |
run: |
|
|
@@ -64,10 +66,7 @@ jobs:
|
|
| 64 |
python -c 'import pysr; pysr.install()'
|
| 65 |
- name: "Run tests"
|
| 66 |
run: python -m unittest test.test
|
| 67 |
-
shell: bash
|
| 68 |
- name: "Install Torch"
|
| 69 |
run: pip install torch # (optional import)
|
| 70 |
-
shell: bash
|
| 71 |
- name: "Run Torch tests"
|
| 72 |
run: python -m unittest test.test_torch
|
| 73 |
-
shell: bash
|
|
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
| 26 |
+
defaults:
|
| 27 |
+
run:
|
| 28 |
+
shell: bash -l {0}
|
| 29 |
strategy:
|
| 30 |
matrix:
|
| 31 |
julia-version: ['1.7.1']
|
|
|
|
| 39 |
with:
|
| 40 |
version: ${{ matrix.julia-version }}
|
| 41 |
- name: "Change package server"
|
|
|
|
| 42 |
env:
|
| 43 |
JULIA_PKG_SERVER: ""
|
| 44 |
run: |
|
|
|
|
| 66 |
python -c 'import pysr; pysr.install()'
|
| 67 |
- name: "Run tests"
|
| 68 |
run: python -m unittest test.test
|
|
|
|
| 69 |
- name: "Install Torch"
|
| 70 |
run: pip install torch # (optional import)
|
|
|
|
| 71 |
- name: "Run Torch tests"
|
| 72 |
run: python -m unittest test.test_torch
|
|
|
.github/workflows/CI_conda.yml
CHANGED
|
@@ -25,6 +25,9 @@ on:
|
|
| 25 |
jobs:
|
| 26 |
test:
|
| 27 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
| 28 |
strategy:
|
| 29 |
matrix:
|
| 30 |
julia-version: ['1.7.1']
|
|
@@ -38,7 +41,6 @@ jobs:
|
|
| 38 |
with:
|
| 39 |
version: ${{ matrix.julia-version }}
|
| 40 |
- name: "Change package server"
|
| 41 |
-
shell: bash
|
| 42 |
env:
|
| 43 |
JULIA_PKG_SERVER: ""
|
| 44 |
run: |
|
|
@@ -67,22 +69,19 @@ jobs:
|
|
| 67 |
run: |
|
| 68 |
python3 -m pip install .
|
| 69 |
python3 -c 'import pysr; pysr.install()'
|
| 70 |
-
shell: bash -l {0}
|
| 71 |
- name: "Install Coverage tool"
|
| 72 |
run: python3 -m pip install coverage coveralls
|
| 73 |
-
shell: bash -l {0}
|
| 74 |
- name: "Ensure that static libpython warning appears"
|
| 75 |
run: coverage run --source=pysr --omit='*/feynman_problems.py' test/test_static_libpython_warning.py
|
| 76 |
-
shell: bash -l {0}
|
| 77 |
- name: "Run tests"
|
| 78 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
| 79 |
-
shell: bash -l {0}
|
| 80 |
- name: Coveralls
|
| 81 |
env:
|
| 82 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 83 |
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
|
| 84 |
COVERALLS_PARALLEL: true
|
| 85 |
run: coveralls --service=github
|
|
|
|
| 86 |
coveralls:
|
| 87 |
name: Indicate completion to coveralls.io
|
| 88 |
needs: test
|
|
|
|
| 25 |
jobs:
|
| 26 |
test:
|
| 27 |
runs-on: ${{ matrix.os }}
|
| 28 |
+
defaults:
|
| 29 |
+
run:
|
| 30 |
+
shell: bash -l {0}
|
| 31 |
strategy:
|
| 32 |
matrix:
|
| 33 |
julia-version: ['1.7.1']
|
|
|
|
| 41 |
with:
|
| 42 |
version: ${{ matrix.julia-version }}
|
| 43 |
- name: "Change package server"
|
|
|
|
| 44 |
env:
|
| 45 |
JULIA_PKG_SERVER: ""
|
| 46 |
run: |
|
|
|
|
| 69 |
run: |
|
| 70 |
python3 -m pip install .
|
| 71 |
python3 -c 'import pysr; pysr.install()'
|
|
|
|
| 72 |
- name: "Install Coverage tool"
|
| 73 |
run: python3 -m pip install coverage coveralls
|
|
|
|
| 74 |
- name: "Ensure that static libpython warning appears"
|
| 75 |
run: coverage run --source=pysr --omit='*/feynman_problems.py' test/test_static_libpython_warning.py
|
|
|
|
| 76 |
- name: "Run tests"
|
| 77 |
run: coverage run --append --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
|
|
|
|
| 78 |
- name: Coveralls
|
| 79 |
env:
|
| 80 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 81 |
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
|
| 82 |
COVERALLS_PARALLEL: true
|
| 83 |
run: coveralls --service=github
|
| 84 |
+
|
| 85 |
coveralls:
|
| 86 |
name: Indicate completion to coveralls.io
|
| 87 |
needs: test
|
.github/workflows/CI_large_nightly.yml
CHANGED
|
@@ -13,6 +13,9 @@ on:
|
|
| 13 |
jobs:
|
| 14 |
test:
|
| 15 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
| 16 |
strategy:
|
| 17 |
matrix:
|
| 18 |
julia-version: ['1.5.0', '1.6.1', '1.7.1', 'nightly']
|
|
@@ -26,7 +29,6 @@ jobs:
|
|
| 26 |
with:
|
| 27 |
version: ${{ matrix.julia-version }}
|
| 28 |
- name: "Change package server"
|
| 29 |
-
shell: bash
|
| 30 |
env:
|
| 31 |
JULIA_PKG_SERVER: ""
|
| 32 |
run: |
|
|
@@ -43,4 +45,3 @@ jobs:
|
|
| 43 |
python -c 'import pysr; pysr.install()'
|
| 44 |
- name: "Run tests"
|
| 45 |
run: python -m unittest test.test
|
| 46 |
-
shell: bash
|
|
|
|
| 13 |
jobs:
|
| 14 |
test:
|
| 15 |
runs-on: ${{ matrix.os }}
|
| 16 |
+
defaults:
|
| 17 |
+
run:
|
| 18 |
+
shell: bash -l {0}
|
| 19 |
strategy:
|
| 20 |
matrix:
|
| 21 |
julia-version: ['1.5.0', '1.6.1', '1.7.1', 'nightly']
|
|
|
|
| 29 |
with:
|
| 30 |
version: ${{ matrix.julia-version }}
|
| 31 |
- name: "Change package server"
|
|
|
|
| 32 |
env:
|
| 33 |
JULIA_PKG_SERVER: ""
|
| 34 |
run: |
|
|
|
|
| 45 |
python -c 'import pysr; pysr.install()'
|
| 46 |
- name: "Run tests"
|
| 47 |
run: python -m unittest test.test
|
|
|
.github/workflows/CI_mac.yml
CHANGED
|
@@ -23,6 +23,9 @@ on:
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
| 26 |
strategy:
|
| 27 |
matrix:
|
| 28 |
julia-version: ['1.7.1']
|
|
@@ -36,7 +39,6 @@ jobs:
|
|
| 36 |
with:
|
| 37 |
version: ${{ matrix.julia-version }}
|
| 38 |
- name: "Change package server"
|
| 39 |
-
shell: bash
|
| 40 |
env:
|
| 41 |
JULIA_PKG_SERVER: ""
|
| 42 |
run: |
|
|
@@ -64,16 +66,11 @@ jobs:
|
|
| 64 |
python -c 'import pysr; pysr.install()'
|
| 65 |
- name: "Run tests"
|
| 66 |
run: python -m unittest test.test
|
| 67 |
-
shell: bash
|
| 68 |
- name: "Install JAX"
|
| 69 |
run: pip install jax jaxlib # (optional import)
|
| 70 |
-
shell: bash
|
| 71 |
- name: "Run JAX tests"
|
| 72 |
run: python -m unittest test.test_jax
|
| 73 |
-
shell: bash
|
| 74 |
- name: "Install Torch"
|
| 75 |
run: pip install torch # (optional import)
|
| 76 |
-
shell: bash
|
| 77 |
- name: "Run Torch tests"
|
| 78 |
run: python -m unittest test.test_torch
|
| 79 |
-
shell: bash
|
|
|
|
| 23 |
jobs:
|
| 24 |
test:
|
| 25 |
runs-on: ${{ matrix.os }}
|
| 26 |
+
defaults:
|
| 27 |
+
run:
|
| 28 |
+
shell: bash -l {0}
|
| 29 |
strategy:
|
| 30 |
matrix:
|
| 31 |
julia-version: ['1.7.1']
|
|
|
|
| 39 |
with:
|
| 40 |
version: ${{ matrix.julia-version }}
|
| 41 |
- name: "Change package server"
|
|
|
|
| 42 |
env:
|
| 43 |
JULIA_PKG_SERVER: ""
|
| 44 |
run: |
|
|
|
|
| 66 |
python -c 'import pysr; pysr.install()'
|
| 67 |
- name: "Run tests"
|
| 68 |
run: python -m unittest test.test
|
|
|
|
| 69 |
- name: "Install JAX"
|
| 70 |
run: pip install jax jaxlib # (optional import)
|
|
|
|
| 71 |
- name: "Run JAX tests"
|
| 72 |
run: python -m unittest test.test_jax
|
|
|
|
| 73 |
- name: "Install Torch"
|
| 74 |
run: pip install torch # (optional import)
|
|
|
|
| 75 |
- name: "Run Torch tests"
|
| 76 |
run: python -m unittest test.test_torch
|
|
|