-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (53 loc) · 1.47 KB
/
ci-ciao-workflow.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CIAO CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
# Reduces GH Action duplication:
# Cancels the previous pipeline for this ref it is still running
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
defaults:
run:
# See https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
# to ensure we pass the "-el {0}" option
shell: bash -el {0}
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Linux Minimum Setup (Python 3.12)
os: ubuntu-latest
python-version: 3.12
xspec-version: 12.14.0i
steps:
- name: Checkout Code
uses: actions/[email protected]
with:
submodules: 'True'
- name: Install Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: build
miniforge-version: latest
python-version: ${{ matrix.python-version }}
auto-update-conda: true
- name: Conda Setup
env:
PYTHONVER: ${{ matrix.python-version }}
XSPECVER: ${{ matrix.xspec-version }}
run: |
conda create --yes -n build -c conda-forge -c https://cxc.cfa.harvard.edu/conda/xspec "python=$PYTHONVER" "xspec-modelsonly=$XSPECVER"
- name: Install
run: |
pip install .[test] --verbose
- name: Test
run: |
pytest