Skip to content

Commit

Permalink
Updating Pytest criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tmathew committed Apr 4, 2024
1 parent de2bca1 commit bc6e18b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 13 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bc6e18b

Please sign in to comment.