From f76cb10c8b113d5b8953bcb0bc7ce3b01306f6f4 Mon Sep 17 00:00:00 2001 From: James Maslek Date: Fri, 28 Jul 2023 11:51:18 -0400 Subject: [PATCH] update --- .github/workflows/sdkv4-core.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sdkv4-core.yml b/.github/workflows/sdkv4-core.yml index 8e85ccea50a..c4e1e44a632 100644 --- a/.github/workflows/sdkv4-core.yml +++ b/.github/workflows/sdkv4-core.yml @@ -5,20 +5,29 @@ on: branches: - feature/openbb-sdk-v4 +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: unit_tests: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python_version: + ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.ref }} - - name: Install dependencies - run: | - python -m venv .venv - source .venv/bin/activate - pip install nox + - name: Install Python ${{ matrix.python_version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python_version }} + cache: "pip" + - name: Run tests run: | - source .venv/bin/activate - nox -s tests + nox -s tests --python ${{ matrix.python_version }}