-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.11 KB
/
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
39
40
name: build-and-test-crossplatform
on:
push:
branches:
- '**'
tags-ignore:
- 'v**'
pull_request:
branches: [master]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Python version 3.10 in string to prevent misinterpretation as 3.1, see https://github.com/actions/runner/issues/1989
python-version: [3.7, 3.8, 3.9, '3.10']
exclude:
- os: macos-latest
python-version: 3.7
runs-on: ${{ matrix.os }}
steps:
# to allow githoub to checkout our repository and access it for testing
- uses: actions/checkout@v2
# build the container with python version
- name: Build using Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: install dependencies [pip]
run: |
python -m pip install pip --upgrade pip
python -m pip install pytest
pip install -e .
- name: run unit tests [pytest]
run: python -m pytest