PySR / .github /workflows /CI_Windows.yml
MilesCranmer's picture
Turn off Julia caching for conda build
b83cddb
raw
history blame
1.45 kB
name: Windows
on:
push:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/CI_Windows.yml'
- 'setup.py'
pull_request:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/CI_Windows.yml'
- 'setup.py'
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
julia-version: ['1.6', '1.8.2']
python-version: ['3.9']
os: [windows-latest]
steps:
- uses: actions/checkout@v3
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: "Cache Julia"
uses: julia-actions/cache@v1
- name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: "Install PySR"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python setup.py install
python -c 'import pysr; pysr.install()'
- name: "Run tests"
run: python -m pysr.test main
- name: "Install Torch"
run: pip install torch # (optional import)
- name: "Run Torch tests"
run: python -m pysr.test torch
- name: "Run custom env tests"
run: python -m pysr.test env