-
Notifications
You must be signed in to change notification settings - Fork 11
72 lines (68 loc) · 2.08 KB
/
test-conda.yml
File metadata and controls
72 lines (68 loc) · 2.08 KB
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
63
64
65
66
67
68
69
70
71
72
name: Run tests (Conda libsemigroups)
on:
workflow_dispatch:
pull_request:
branches:
- "stable-*"
- "rc-*"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-doc:
name: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
compiler: g++
- os: macOS-latest
compiler: clang++
runs-on: ${{ matrix.os }}
timeout-minutes: 15
defaults:
run:
shell: bash -l {0}
env:
CXX: "ccache ${{ matrix.compiler }}"
UV_NO_SYNC: "1"
steps:
# Setup environment
- uses: actions/checkout@v6
- name: Create micromamba environment . . .
uses: mamba-org/setup-micromamba@v3
with:
environment-name: libsemigroups
cache-environment: false
create-args: >-
python
libsemigroups
- name: Install uv . . .
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Setup ccache . . .
uses: Chocobo1/setup-ccache-action@v1
with:
update_packager_index: false
install_ccache: true
- name: Set environment variables . . .
run: |
echo "PKG_CONFIG_PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/lib/pkgconfig:$MAMBA_ROOT_PREFIX/envs/libsemigroups/share/pkgconfig:/usr/local/lib/pkgconfig" >> $GITHUB_ENV
echo "PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/bin:$PATH" >> $GITHUB_ENV
- name: Check Python version . . .
run: python --version
# Build libsemigroups_pybind11
- name: "Install libsemigroups_pybind11 . . ."
run: uv sync --verbose --locked --all-extras --no-dev
# Run the tests
- name: "Running tests . . ."
run: uv run pytest
- name: "Running doc tests . . ."
run: |
uv run etc/make-doc.sh # so that all files are generated!
cd docs
uv run python -m sphinx -b doctest -d _build/doctrees source _build/doctest