-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (40 loc) · 1.08 KB
/
builds.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
41
42
43
44
45
46
47
48
name: builds
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
HYPOTHESIS_PROFILE: ci
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build and install Mr Mustard
run: |
python -m pip install --upgrade pip wheel
python setup.py bdist_wheel
pip install dist/mrmustard*.whl
- name: Install test dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install wheel pytest pytest-cov pytest-mock hypothesis --upgrade
- name: Run tests
run: |
python -m pytest tests -p no:warnings --tb=native