-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (42 loc) · 1.09 KB
/
conda-run-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
name: Run tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "main"
jobs:
example-1:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.6", "3.7", "3.8"]
steps:
- uses: actions/checkout@v2
- name: Cache Conda
uses: actions/cache@v1
with:
path: /usr/share/miniconda/envs/ledgerx
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Setup conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ledgerx
environment-file: environment.yml
python-version: "${{ matrix.python-version }}"
auto-activate-base: false
- name: Conda info
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
run: |
pytest