Skip to content

Commit a8fa607

Browse files
2 parents 69c1c05 + 32bb216 commit a8fa607

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on: [push]
3+
4+
jobs:
5+
build-os-python:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
max-parallel: 5
9+
fail-fast: true
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
python-version: ["3.8", "3.10", "3.11"]
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: goanpeca/setup-miniconda@v2.2.0
16+
with:
17+
miniforge-variant: Mambaforge-pypy3
18+
conda-build-version: ">=3.26"
19+
environment-file: environment.yml
20+
activate-environment: mkxref-dev
21+
python-version: ${{ matrix.python-version }}
22+
auto-update-conda: true
23+
condarc-file: github-condarc.yml
24+
auto-activate-base: true
25+
use-mamba: true
26+
- name: Dev install package
27+
run: |
28+
conda run -n mkxref-dev pip install -e . --no-deps --no-build-isolation
29+
- name: pylint
30+
run: |
31+
make pylint
32+
- name: mypy
33+
if: success() || failure()
34+
run: |
35+
make mypy
36+
- name: Test with pytest
37+
if: success() || failure()
38+
run: |
39+
make coverage-test

0 commit comments

Comments
 (0)