-
Notifications
You must be signed in to change notification settings - Fork 32
49 lines (40 loc) · 1006 Bytes
/
ci.yaml
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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- "*"
workflow_dispatch:
env:
python-version: "3.11"
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
tox-env: ["py38", "py39", "py310", "py311"]
steps:
- uses: actions/checkout@v3
- name: Cache conda packages
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ matrix.tox-env }}-${{ hashFiles('ci/requirements-*.yml') }}
- name: Install base Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.python-version }}
channels: conda-forge
- name: Install tox
shell: bash -l {0}
run: |
conda install -c conda-forge tox
- name: Run tests
shell: bash -l {0}
run: |
tox -vve "${{ matrix.tox-env }}"