Spaces:
Running
Running
File size: 1,783 Bytes
aa19284 25f8cac df21dce 25f8cac d369a9b 25f8cac df21dce 25f8cac d369a9b 25f8cac 72dc01c eea7daa 000f989 25f8cac a934083 f56fdcb 25f8cac e2988c9 25f8cac a934083 25f8cac b83cddb f88031e e8815be 25f8cac e2988c9 25f8cac fc23c11 25f8cac b3fd9db 25f8cac 5698780 25f8cac 5698780 25f8cac d18011f 25f8cac 5698780 acb3fea 5698780 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
name: macOS
on:
push:
branches:
- '**'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/CI_mac.yml'
- 'setup.py'
tags:
- 'v*.*.*'
pull_request:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/CI_mac.yml'
- 'setup.py'
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
shell: bash
strategy:
matrix:
julia-version: ['1.8.2']
python-version: ['3.9']
os: [macos-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
with:
cache-name: ${{ matrix.os }}-test-${{ matrix.julia-version }}-${{ matrix.python-version }}
cache-packages: false
- 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 JAX"
run: pip install jax jaxlib # (optional import)
- name: "Run JAX tests"
run: python -m pysr.test jax
- 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
|