-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (39 loc) · 1.1 KB
/
testing.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
# This is a basic workflow to help you get started with Actions
name: Testing
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events to the main and dev branches
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch: # make is manually start-able
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.8'
miniforge-version: latest
activate-environment: MPP
use-mamba: true
- name: Install environment
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
test -f setup.py && pip install -e ".[all]"
pip install pytest
- name: Run tests
shell: bash -l {0}
run: |
cd tests
pytest