-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 957 Bytes
/
test_windows.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
name: QENS models on Windows
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
platform: [windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: lint with flake8
run: |
pip install flake8
python -m flake8 QENSmodels
python -m flake8 tests
python -m flake8 docs\examples\using_mantid\mantid_BrownianDiff_fit.py
- name: run unitests
run: |
python -m unittest discover tests
- name: run doctests
run: |
pip install pytest
pytest --doctest-modules QENSmodels