From c9604467f91ced26a58981d9f2d033f5d32d1659 Mon Sep 17 00:00:00 2001 From: David Nabergoj Date: Sat, 21 Oct 2023 12:25:02 +0200 Subject: [PATCH] Update workflow --- .github/workflows/python-package-conda.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 97e72b8..b7632e7 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -1,26 +1,33 @@ -name: Python Package using Conda +name: Setup and run tests -on: [push] +on: + push: + branches: [ "main", "dev"] + pull_request: + branches: [ "main", "dev" ] + workflow_dispatch: jobs: - build-linux: + build: + runs-on: ubuntu-latest strategy: - max-parallel: 5 + fail-fast: false + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: ${{ matrix.python-version }} - name: Add conda to system path run: | # $CONDA is an environment variable pointing to the root of the miniconda directory echo $CONDA/bin >> $GITHUB_PATH - name: Install dependencies run: | - # conda env update --file environment.yml --name base pip install -r requirements.txt - name: Lint with flake8 run: |