-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (55 loc) · 1.72 KB
/
qa-conda.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
53
54
55
56
57
58
---
name: QA conda
on:
push:
branches:
- 'main'
pull_request:
types: ['opened', 'synchronize', 'reopened']
jobs:
qa-ubuntu-conda:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
defaults:
run:
shell: bash -l {0}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Cache conda packages
uses: actions/cache@v3
env:
# Increase this value to reset cache if environment.yaml has not changed
CACHE_NUMBER: 1
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment-linux.yaml') }}
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
environment-file: environment-linux.yaml
miniforge-version: latest
mamba-version: '*'
python-version: ${{ matrix.python-version }}
- name: Setup Julia
uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- name: Show info
run: |
conda info
type gcc
type g++
type python
type pip
type julia
git status
- name: Build
run: |
make
- name: Run tests
run: |
make test