-
Notifications
You must be signed in to change notification settings - Fork 17
81 lines (66 loc) · 1.74 KB
/
ci_workflows.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# GitHub Actions workflow for testing and continuous integration.
name: CI
on:
push:
pull_request:
jobs:
ci_tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Python 3.10
os: ubuntu-latest
python: "3.10"
- name: Python 3.11
os: ubuntu-latest
python: 3.11
- name: Python 3.11 Mac
os: macos-latest
python: 3.11
- name: Python Long
os: ubuntu-latest
python: 3.11
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: stips
environment-file: environment.yml
python-version: ${{ matrix.python }}
auto-activate-base: false
miniconda-version: "latest" # Ensure Miniconda is installed if not found
- name: Test with tox
shell: bash -l {0}
if: ${{ matrix.name != 'Python Long' }}
run: |
tox -e test
- name: Test slow tests with pytest
shell: bash -l {0}
if: ${{ matrix.name == 'Python Long' }}
run: |
tox -e test-all
docs_test:
name: "docs_test"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: stips
environment-file: environment.yml
python-version: 3.11
auto-activate-base: false
- name: Build Docs
shell: bash -l {0}
run: |
tox -e build_docs