Spaces:
Running
Running
File size: 1,250 Bytes
1b8ec96 13cf1e5 1b8ec96 72dc01c 1b8ec96 2326b1e 1b8ec96 0147c3e ffcddde 13cf1e5 1b8ec96 13cf1e5 f75d348 13cf1e5 04c09f5 13cf1e5 9bd009b 13cf1e5 9bd009b 13cf1e5 a03df70 9bd009b 13cf1e5 1b8ec96 422ae17 |
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 |
name: conda-forge
# This CI tries the conda-forge version of PySR
on:
schedule:
# Run at the 0th minute of the 10th hour (UTC).
# This means the job will run at 5am EST.
- cron: "0 10 * * *"
# This will automatically run on master branch only.
workflow_dispatch:
jobs:
conda_test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: ['ubuntu-latest', 'macos-latest']
use-mamba: [true, false]
steps:
- name: "Set up Conda"
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
auto-activate-base: true
python-version: ${{ matrix.python-version }}
activate-environment: pysr-test
- name: "Install pysr with mamba"
run: conda activate pysr-test && mamba install pysr
if: ${{ matrix.use-mamba }}
- name: "Install pysr with conda"
run: conda activate pysr-test && conda install pysr
if: ${{ !matrix.use-mamba }}
- name: "Run tests"
run: python -m pysr.test main
|