Skip to content

Commit 22be49b

Browse files
committed
Add GitHub Actions CI
1 parent d95e90d commit 22be49b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
schedule:
9+
[cron: "0 12 * * 0"]
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
17+
python-version: [3.8]
18+
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}
19+
defaults:
20+
run:
21+
shell: bash -l {0}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: conda-incubator/setup-miniconda@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Cache pip
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-${{ matrix.python-version }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-${{ matrix.python-version }}-
34+
${{ runner.os }}-${{ matrix.python-version }}-
35+
- run: pip install -r requirements-dev.txt
36+
- run: pip install -e .
37+
- name: Test
38+
run: pytest -v

requirements-dev.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# From requirements.txt
2+
numpy
3+
scipy>=1.6.0
4+
5+
# Dev additions
6+
pytest
7+
matplotlib

0 commit comments

Comments
 (0)