-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.63 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- {os: "ubuntu-22.04", python-version: "3.10", cc: "gcc", cxx: "g++", llvm: "15", gcc-version: "12"}
#- {os: "ubuntu-22.04", python-version: "3.11", cc: "gcc", cxx: "g++", llvm: "15", gccversion: "12"}
#- {os: "ubuntu-22.04", python-version: "3.10", cc: "clang", cxx: "clang++", llvm: "15", gcc-version: "12"}
#- {os: "ubuntu-22.04", python-version: "3.11", cc: "clang", cxx: "clang++", llvm: "15", gcc-version: "12"}
runs-on: ${{ matrix.os }}
name: Test Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} and TRIQS
uses: ./.github/actions/setup-triqs
with:
python-version: ${{ matrix.python-version }}
cc: ${{ matrix.cc }}
cxx: ${{ matrix.cxx }}
llvm: ${{ matrix.llvm }}
gcc-version: ${{ matrix.gcc-version }}
- name: Install risb
run: |
source $TRIQS_INSTALL/share/triqs/triqsvars.sh
python -m pip install -e .[test,docs]
- name: Test risb
run: |
source $TRIQS_INSTALL/share/triqs/triqsvars.sh
python -m pytest
- name: Test docs
run: |
source $TRIQS_INSTALL/share/triqs/triqsvars.sh
sphinx-apidoc -o docs/api --module-first --no-toc --force --separate src/risb
sphinx-build -b html -n -T docs docs/_build