Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PySR integration test #461

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: make conditional compatible with windows
MilesCranmer committed Aug 23, 2024
commit c271a97e31a79ae404ea097a3622021ec68a4961
17 changes: 8 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -55,6 +55,8 @@ jobs:
python:
name: python-${{ matrix.test-type }}-${{ matrix.os }}-py${{ matrix.pyversion }}
runs-on: ${{ matrix.os }}
env:
PYTHON_JULIACALL_THREADS: '2'
strategy:
fail-fast: true
matrix:
@@ -95,15 +97,12 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --ignore=F821 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests
run: |
if [ "${{ matrix.test-type }}" == "integration" ]; then
pytest -s ./pytest/integration/
else
pytest -s --nbval --cov=pysrc ./pytest/ -k "not integration"
fi
env:
PYTHON_JULIACALL_THREADS: '2'
- name: Run unit tests
if: ${{ matrix.test-type == 'unit' }}
run: pytest -s --nbval --cov=pysrc ./pytest/ -k "not integration"
- name: Run integration tests
if: ${{ matrix.test-type == 'integration' }}
run: pytest -s ./pytest/integration/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: ${{ matrix.test-type == 'unit' }}