-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (36 loc) · 1012 Bytes
/
tests-on-pr.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
name: Tests on PR
on:
push:
branches:
- main
- cookie
pull_request:
workflow_dispatch:
jobs:
validate:
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
steps:
- name: Check out diffpy.srreal
uses: actions/checkout@v4
- name: Initialize miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: true
environment-file: environment.yml
auto-activate-base: false
python-version: 3.12
- name: Conda config
run: >-
conda config --set always_yes yes
--set changeps1 no
- name: Install diffpy.srreal and requirements
run: |
conda install --file requirements/test.txt
conda install boost numpy libdiffpy setuptools diffpy.structure periodictable gsl
python -m pip install . --no-deps
- name: Validate diffpy.pdfgui
run: pytest tests