-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.07 KB
/
tests.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
45
46
47
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.9"]
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
steps:
- name: Check out repository
uses: actions/checkout@v4
# - uses: pdm-project/setup-pdm@v3
# name: Set up PDM
# with:
# python-version: ${{ matrix.python-version }}
# cache: true
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
activate-environment: test
- name: Install dependencies
run: |
mamba install -c conda-forge openbabel fftw -y
pip install -e ".[dev]"
pip install pyxtal
- name: Test
run: pytest tests