Skip to content

Commit

Permalink
Merge pull request #242 from Snowflake-Labs/feature/github-actions
Browse files Browse the repository at this point in the history
Updating Pytest criteria and CI/CD parameters
  • Loading branch information
sfc-gh-tmathew authored Apr 10, 2024
2 parents de2bca1 + f1c2afe commit 6b22c11
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
32 changes: 32 additions & 0 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: dev-pytest

on:
push:
branches:
- dev

workflow_dispatch:


jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- 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
18 changes: 11 additions & 7 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: pytest
name: master-pytest

on: [push]
on:
push:
branches:
- master

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 6b22c11

Please sign in to comment.