-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 965 Bytes
/
ci.yaml
File metadata and controls
36 lines (32 loc) · 965 Bytes
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
name: CI
on:
push:
jobs:
run_tests:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
isMainBranch:
- ${{ contains(github.ref, 'main') }} # Check if the branch is main
exclude:
- isMainBranch: false
os: windows-latest # Exclude Windows for non-main branches
- isMainBranch: false
os: macos-latest # Exclude macOS for non-main branches
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Set up Conda environment
uses: conda-incubator/setup-miniconda@v3.2.0
with:
activate-environment: InOutModule_env
environment-file: environment.yml
auto-activate-base: false
- name: Run tests
run: python -m pytest