Spaces:
Running
Running
Add CLI tests to CI
Browse filesFiles changed (6)
57 unmodified lines5859606162636457 unmodified lines- name: "Install Coverage tool"run: pip install coverage coveralls- name: "Run tests"run: coverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m pysr.test main- name: "Install JAX"run: pip install jax jaxlib # (optional import)- name: "Run JAX tests"57 unmodified lines58596061626364656657 unmodified lines- name: "Install Coverage tool"run: pip install coverage coveralls- name: "Run tests"run: |coverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m pysr.test maincoverage run --source=pysr --omit='*/test/*,*/feynman_problems.py' -m pysr.test cli- name: "Install JAX"run: pip install jax jaxlib # (optional import)- name: "Run JAX tests"
55 unmodified lines5657585960616255 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: python -m pysr.test main- name: "Install Torch"run: pip install torch # (optional import)- name: "Run Torch tests"55 unmodified lines56575859606162636455 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: |python -m pysr.test mainpython -m pysr.test cli- name: "Install Torch"run: pip install torch # (optional import)- name: "Run Torch tests"
38 unmodified lines3940414238 unmodified lines- name: Build dockerrun: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .- name: Test dockerrun: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test env'38 unmodified lines3940414238 unmodified lines- name: Build dockerrun: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .- name: Test dockerrun: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test cli && python3 -m pysr.test env'
32 unmodified lines3334353632 unmodified lines- name: Build dockerrun: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} .- name: Test dockerrun: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test env'32 unmodified lines3334353632 unmodified lines- name: Build dockerrun: docker build --platform=${{ matrix.arch }} -t pysr --build-arg JLVERSION=${{ matrix.julia-version }} .- name: Test dockerrun: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr.test main && python3 -m pysr.test cli && python3 -m pysr.test env'
43 unmodified lines4445464748495043 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: python -m pysr.test main- name: "Run new env test"run: python -m pysr.test envif: ${{ !(matrix.os == 'windows-latest' && matrix.python-version == '3.7') }}43 unmodified lines44454647484950515243 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: |python -m pysr.test mainpython -m pysr.test cli- name: "Run new env test"run: python -m pysr.test envif: ${{ !(matrix.os == 'windows-latest' && matrix.python-version == '3.7') }}
55 unmodified lines5657585960616255 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: python -m pysr.test main- name: "Install JAX"run: pip install jax jaxlib # (optional import)- name: "Run JAX tests"55 unmodified lines56575859606162636455 unmodified linespython setup.py installpython -m pysr install- name: "Run tests"run: |python -m pysr.test mainpython -m pysr.test cli- name: "Install JAX"run: pip install jax jaxlib # (optional import)- name: "Run JAX tests"
.github/workflows/CI.yml+3-1
.github/workflows/CI_Windows.yml+3-1
.github/workflows/CI_docker.yml+1-1
.github/workflows/CI_docker_large_nightly.yml+1-1
.github/workflows/CI_large_nightly.yml+3-1
.github/workflows/CI_mac.yml+3-1