-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 935 Bytes
/
ci.yml
File metadata and controls
32 lines (31 loc) · 935 Bytes
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
name: Run python tests
on:
workflow_dispatch:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.12"
channels: conda-forge
activate-environment: test-env
- name: Install ROOT and dependencies
shell: bash -l {0}
run: |
conda install pytest coverage
conda install --yes --file requirements.txt
- name: Run tests with pytest
shell: bash -l {0}
run: coverage run --source test -m pytest --disable-warnings