-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (46 loc) · 1.15 KB
/
CI.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
name: CI
on:
push:
branches:
- main
tags: '*'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os:
- ubuntu-latest
architecture: [x64]
python-version: ['3.9']
fail-fast: false
name: Test ${{ matrix.os }} ${{ matrix.architecture }}
Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: rms_env
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: "latest"
python-version: ${{ matrix.python-version }}
use-mamba: true
- name: Conda Info
run: |
mamba info
mamba list
- name: Run test
run: |
nosetests pyrms/rmsTest.py