-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 945 Bytes
/
tests.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: Run tests
on:
pull_request:
push:
branches: [main]
jobs:
tests:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2022, macos-11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Tests for reference implementation
run: |
cd reference_implementation
# Require 100% test coverage for reference implementation.
python -m pytest \
--cov=demes_parser \
--cov-report=term-missing \
--cov-fail-under=100 \
tests.py
- name: Tests for schema
run: |
python -m pytest tests.py