-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (49 loc) · 1.32 KB
/
unit-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
52
53
54
55
56
57
name: Unit Tests - Conda
on:
push:
branches:
- 'release'
- 'development'
- 'main'
pull_request:
branches:
- '*'
jobs:
Test-Package:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 8
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11",]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Create Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Dependencies Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
pip install 'tox<4'
pip install 'tox-gh-actions<2'
pip install tox-conda
- name: Install Dependencies Windows
if: matrix.os == 'windows-latest'
run: |
conda install pip
conda install "tox<4"
pip install "tox-gh-actions<2"
pip install tox-conda
- name: Test with tox
shell: bash -el {0}
run: |
tox