From c13c4f7f07120435c069f4bacadb736e8e5a5ba1 Mon Sep 17 00:00:00 2001 From: Helge Gehring <42973196+HelgeGehring@users.noreply.github.com> Date: Thu, 20 Apr 2023 17:22:13 +0200 Subject: [PATCH] use coda for build-workflow --- .github/workflows/build.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ffbcc68..26506f22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,32 +42,28 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.11 - uses: actions/setup-python@v4 + - name: Setup Mambaforge + uses: conda-incubator/setup-miniconda@v2 with: - python-version: '3.11' + miniforge-variant: Mambaforge + miniforge-version: latest + activate-environment: env + use-mamba: true + - name: Add conda to system path + run: | + echo $CONDA/bin >> $GITHUB_PATH - name: Install Poetry uses: snok/install-poetry@v1 with: version: 1.3.2 - virtualenvs-create: true - virtualenvs-in-project: true + virtualenvs-create: false installer-parallel: true - name: Install dependencies run: | sudo apt-get install -y libglu1-mesa + pip install git+https://github.com/kinnala/scikit-fem.git poetry install --no-interaction --no-root - source $VENV - pip install --upgrade git+https://github.com/kinnala/scikit-fem.git - - name: Install slepc4py - run: | - source $VENV - export PETSC_CONFIGURE_OPTIONS="--with-scalar-type=complex" - pip install petsc - pip install petsc4py - pip install slepc - pip install slepc4py + mamba install slepc4py=*=complex* -y - name: Build package run: | - source $VENV poetry build