File size: 1,556 Bytes
aa19284
25f8cac
c01fb54
 
 
df21dce
c01fb54
 
 
d369a9b
c01fb54
df21dce
 
c01fb54
 
 
 
 
 
d369a9b
c01fb54
 
 
 
 
72dc01c
eea7daa
 
000f989
c01fb54
 
83a2950
bedf085
a934083
e7941a7
c01fb54
3a1fd74
c01fb54
6da5944
c01fb54
 
b83cddb
6238194
f88031e
 
e8815be
c01fb54
5afff31
c01fb54
 
fc23c11
c01fb54
 
 
65159ce
043980c
 
c01fb54
1163194
92eb30b
c01fb54
d18011f
c01fb54
4320392
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
name: Windows

on:
  push:
    branches:
      - '**'
    paths:
      - 'test/**'
      - 'pysr/**'
      - '.github/workflows/CI_Windows.yml'
      - 'setup.py'
    tags:
      - 'v*.*.*'
  pull_request:
    branches:
      - '*'
    paths:
      - 'test/**'
      - 'pysr/**'
      - '.github/workflows/CI_Windows.yml'
      - 'setup.py'

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
            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