-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1008 Bytes
/
build.yml
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
name: build
on:
push:
paths-ignore:
- doc/**
- .gitignore
- LICENSE.txt
- README.md
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
install-and-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: infresnel
environment-file: environment.yml
miniforge-variant: Mambaforge
use-mamba: true
- name: Install development packages
run: pip install --requirement requirements.txt
- name: Check formatting
run: |
black --skip-string-normalization --check .
isort --conda-env infresnel --profile black --check-only .
- name: Run tests
run: pytest --capture=no