-
Notifications
You must be signed in to change notification settings - Fork 41
51 lines (41 loc) · 1.17 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
on: [push, pull_request]
jobs:
run_test_suite:
name: ${{ matrix.os }}-py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
env:
test-dependencies: pytest pytest-cov conda
strategy:
fail-fast: false
matrix:
os: [windows]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- shell: bash -l {0}
name: Conda info
run: |
conda info
conda list
- shell: bash -l {0}
name: Install dependencies
run: |
conda install ${{ env.dependencies }} ${{ env.test-dependencies }}
conda list
- shell: bash -l {0}
name: Install menuinst
run: |
pip install -e .
- shell: bash -l {0}
name: Run test suite
run: |
pytest tests --cov-append --cov-report=xml --cov=menuinst
- uses: codecov/codecov-action@v1
with:
name: ${{ matrix.os }}-py${{ matrix.python-version }}