-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.64 KB
/
additional.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
58
59
60
61
name: Additional
on: [push, pull_request]
# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}
jobs:
doctest:
runs-on: "ubuntu-latest"
timeout-minutes: 90
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Setup Conda Environment
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channel-priority: strict
python-version: "3.10"
environment-file: continuous_integration/environment-3.10.yaml
activate-environment: test-environment
auto-activate-base: false
- name: Install
run: source continuous_integration/scripts/install.sh
- name: Run tests
run: pytest -v --doctest-modules --ignore-glob='*/test_*.py' dask
imports:
runs-on: "ubuntu-latest"
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Setup Conda
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channel-priority: strict
python-version: "3.9"
activate-environment: test-environment
auto-activate-base: false
- name: Run import tests
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: source continuous_integration/scripts/test_imports.sh