-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1.07 KB
/
mac_tests.yaml
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
name: mac full env tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 13 * * 1"
jobs:
build:
name: ${{ matrix.os }} py${{ matrix.python-version }} ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest"]
python-version: ["3.11", "3.13"]
environment-file: ["environment.yml"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ${{ matrix.environment-file }}
activate-environment: lhorizon
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
auto-activate-base: false
miniforge-version: latest
conda-remove-defaults: "true"
- name: Set up conda environment
shell: bash -l {0}
run: |
python -m pip install -e .
conda list
- name: Run Tests
shell: bash -l {0}
run: pytest