-
Notifications
You must be signed in to change notification settings - Fork 12
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:
- cron: "0 2 * * 1"
jobs:
test:
name: 🐍 ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, "3.12"]
steps:
- uses: actions/checkout@v4
- name: Additional Build Info
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Create Environment
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
activate-environment: test
auto-activate-base: false
show-channel-urls: true
- 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/