-
Notifications
You must be signed in to change notification settings - Fork 25
41 lines (40 loc) · 1.12 KB
/
run_pytest_interfaces.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
name: Run interface related PyTests
permissions: {}
env:
COLUMNS: 120
on:
pull_request:
paths:
- 'matsciml/interfaces/**'
workflow_dispatch:
jobs:
interfaces-pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create/reuse micromamba env
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.7-0'
environment-file: conda.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'
generate-run-shell: true
- name: Install current version of matsciml
run: |
pip install .
shell: micromamba-shell {0}
- name: Install PyTest
run: |
pip install pytest pytest-dependency pytest-pretty
shell: micromamba-shell {0}
- name: Print out environment
run: |
micromamba env export && pip freeze
shell: micromamba-shell {0}
- name: Run pytest in data
run: |
pytest -v -m "not lmdb and not slow and not remote_request" ./matsciml/interfaces
shell: micromamba-shell {0}