Skip to content

Fix group with automatic groups by labels of str dtype #3425

Fix group with automatic groups by labels of str dtype

Fix group with automatic groups by labels of str dtype #3425

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true # cancel jobs from previous push
jobs:
formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
- run: tox -e static
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply automatic formatting
build_and_test:
needs: formatting
name: build and test ${{ matrix.variant.os }}, py${{ matrix.python-version }}
runs-on: ${{ matrix.variant.os }}
defaults:
run:
shell: bash -l {0} # required for conda env
strategy:
fail-fast: false
matrix:
variant:
- {os: ubuntu-22.04, cmake-preset: ci-linux}
- {os: macos-11, cmake-preset: ci-macos}
- {os: windows-2019, cmake-preset: ci-windows}
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # history required so cmake can determine version
- uses: ilammy/msvc-dev-cmd@v1 # Required to set up MSVC dev environment for Ninja builds.
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.5.6-0
environment-file: .buildconfig/${{ matrix.variant.cmake-preset }}.yml
cache-environment: true
create-args: python=${{ matrix.python-version }}
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.13
with:
key: ${{ matrix.variant.os }}
- name: Cache conan setup
id: conan-cache-key
run: |
echo "key=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
echo "path=$(conan config home)" >> $GITHUB_OUTPUT
- name: Cache conan
uses: actions/cache@v1
with:
path: ${{ steps.conan-cache-key.outputs.path }}
key: conan-${{ matrix.variant.os }}-${{ steps.conan-cache-key.outputs.key }}
- run: cmake --preset ${{ matrix.variant.cmake-preset }}
- run: cmake --build --preset build
- run: ctest --preset test
- run: tox -e import-minimal
- run: tox -e test
- run: tox -e docs
if: ${{ contains(matrix.variant.os, 'ubuntu') }}
- run: tox -e linkcheck
# Linkcheck can be flaky. Avoid randomly breaking PR builds by running only on `main`
if: ${{ contains(matrix.variant.os, 'ubuntu') && github.ref == 'refs/heads/main' }}
- uses: actions/upload-artifact@v2
if: ${{ contains(matrix.variant.os, 'ubuntu') }}
with:
name: DocumentationHTML
path: html/