Update to 1.0 backend #2023
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '**' | |
tags: | |
- 'v*.*.*' | |
pull_request: | |
branches: | |
- 'master' | |
paths: | |
- '**' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
julia-version: ['1'] | |
python-version: ['3.12'] | |
os: [windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up Julia" | |
uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ matrix.julia-version }} | |
- name: "Cache Julia" | |
uses: julia-actions/cache@v2 | |
with: | |
cache-name: ${{ matrix.os }}-test-${{ matrix.julia-version }}-${{ matrix.python-version }} | |
cache-packages: false | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: "Install PySR" | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest nbval "numpy<2.0.0" | |
pip install . | |
python -c 'import pysr' | |
- name: "Run tests" | |
run: | | |
python -m pysr test main,cli,startup | |
- name: "Install Torch" | |
run: pip install torch # (optional import) | |
- name: "Run Torch tests" | |
run: python -m pysr test torch |