-
-
Notifications
You must be signed in to change notification settings - Fork 30
57 lines (49 loc) · 1.56 KB
/
test.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: Test
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
include:
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.9"
- os: macos-latest
python-version: "3.11"
steps:
- name: Checkout source
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Conda Environment
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
activate-environment: test
condarc-file: continuous_integration/condarc
python-version: ${{ matrix.python-version }}
environment-file: continuous_integration/environment.yml
- name: Install zict
shell: bash -l {0}
run: python setup.py install
- name: mamba list
shell: bash -l {0}
run: mamba list
- name: mamba env export
shell: bash -l {0}
run: |
echo -e "--\n--Conda Environment (re-create this with \`mamba env create --name <name> -f <output_file>\`)\n--"
mamba env export | grep -E -v '^prefix:.*$'
- name: Run pytest
shell: bash -l {0}
run: pytest --doctest-modules zict