-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (42 loc) · 1.25 KB
/
validate-examples.yml
File metadata and controls
52 lines (42 loc) · 1.25 KB
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
50
51
52
name: Validate Examples
on:
workflow_dispatch:
jobs:
validate-examples:
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Initialize miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
channels: conda-forge
auto-update-conda: true
auto-activate-base: false
python-version: 3.13
- name: Conda config
run: >-
conda config --set always_yes yes
--set changeps1 no
- name: Install dependencies
run: |
conda install --file requirements/conda.txt
conda install --file requirements/tests.txt
if [ -d requirements/packs ]; then
for f in requirements/packs/*.txt; do
if [ -f "$f" ]; then
echo "Installing dependencies from $f"
conda install --file "$f"
fi
done
fi
python -m pip install . --no-deps
- name: Run example scripts
run: |
set -Eeuo pipefail
echo "Running example scripts"
pytest validators/validate_examples.py --cov