From 8f4e0c57f4a763f3866e705ee1fa61ae249348f6 Mon Sep 17 00:00:00 2001 From: Sam Dotson Date: Mon, 9 Sep 2024 21:26:46 -0400 Subject: [PATCH] adds new workflows to ci --- .github/workflows/CI.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8642851..7f75104 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,7 +15,15 @@ permissions: jobs: build: name: Build and test - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ${{ fromJSON(needs.build.outputs.python-versions) }} + os: + - ubuntu-latest + - macos-latest + - windows-latest defaults: run: @@ -36,11 +44,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pyomo==6.4.1 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install CBC run: | - mamba install coincbc + mamba install coin-or-cbc coincbc - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names @@ -50,9 +57,6 @@ jobs: - name: Install osier package run: | pip install . - - name : Install recent unyt update - run: | - python3 -m pip install -e git+https://github.com/yt-project/unyt.git#egg=unyt - name: Test with pytest run: | pytest tests/