-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (44 loc) · 1.06 KB
/
CI.yaml
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: CI
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
schedule:
# Tests run every Monday
- cron: "0 0 * * 1"
jobs:
test:
name: 🐍 ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, "3.12"]
steps:
- uses: actions/checkout@v3
- name: Additional Build Info
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Create Environment
uses: mamba-org/setup-micromamba@v1
with:
extra-specs: python=${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
channel-priority: flexible
- name: Install crystalatte
# conda setup requires this special shell
shell: bash -l {0}
run: |
python -m pip install . --no-deps
conda list
- name: Run tests
# conda setup requires this special shell
shell: bash -l {0}
run: |
pytest -v --color=yes crystalatte/tests/