From 8a10bcbbdb6a947b1ef4537357de2d9ec1bf2d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Tue, 29 Oct 2024 13:07:53 +0100 Subject: [PATCH] workflow --- .github/workflows/conda.yml | 44 +++++++++++++++++++++++++++++++++++++ conda-recipe/meta.yaml | 3 +++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/conda.yml diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml new file mode 100644 index 0000000..089ea14 --- /dev/null +++ b/.github/workflows/conda.yml @@ -0,0 +1,44 @@ +name: Conda + +on: + workflow_dispatch: + push: + branches: + - v1 + pull_request: + +jobs: + build: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, ] # macos-12, windows-2019] + python-version: ["3.12",] + + runs-on: ${{ matrix.platform }} + + # The setup-miniconda action needs this to activate miniconda + defaults: + run: + shell: "bash -l {0}" + + steps: + - uses: actions/checkout@v4 + + - name: Get conda + uses: conda-incubator/setup-miniconda@v3.0.4 + with: + python-version: ${{ matrix.python-version }} + channels: conda-forge + + - name: Prepare + run: conda install conda-build conda-verify pytest + + - name: Build + run: conda build conda.recipe + + # - name: Install + # run: conda install -c ${CONDA_PREFIX}/conda-bld/ scikit_build_example + + # - name: Test + # run: pytest tests diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 2697af8..7ba00f5 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -24,6 +24,9 @@ requirements: - scikit-build-core - pybind11 >=2.13.0 - fmt + - zeromq + - nlohmann_json + - catch2 run: - python