From bc6e18b6d65e7bb192a76a73db3bb5cdffa135d5 Mon Sep 17 00:00:00 2001 From: Tiji Mathew Date: Thu, 4 Apr 2024 09:45:43 -0400 Subject: [PATCH] Updating Pytest criteria --- .github/workflows/dev-pytest.yml | 34 ++++++++++++++++++++++++++++++++ .github/workflows/pytest.yml | 19 ++++++++++++------ 2 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/dev-pytest.yml diff --git a/.github/workflows/dev-pytest.yml b/.github/workflows/dev-pytest.yml new file mode 100644 index 00000000..02ed99f6 --- /dev/null +++ b/.github/workflows/dev-pytest.yml @@ -0,0 +1,34 @@ +name: pytest + +on: + push: + branches: + - dev + + pull_request: + types: [opened, reopened] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Update pip + run: | + python -m pip install --upgrade pip + - name: Install dependencies + run: | + python -m pip install -e .[dev] + - name: Test with pytest + run: | + pytest diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 96e788c4..c31d4ded 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,20 +1,27 @@ name: pytest -on: [push] +on: + push: + branches: + - master + + pull_request: + types: [opened, reopened] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + os: ["ubuntu-latest", "macos-latest", "windows-latest"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Update pip