Skip to content

Bump snowflake-connector-python from 3.0.0 to 3.0.2 in /data-workflow… #251

Bump snowflake-connector-python from 3.0.0 to 3.0.2 in /data-workflow…

Bump snowflake-connector-python from 3.0.0 to 3.0.2 in /data-workflow… #251

# Workflow for running data-workflows tests for PRs and main branch
name: Data Workflows Tests
on:
push:
branches:
- main
paths:
- 'data-workflows/**'
- 'napari-hub-commons/**'
- '.github/workflows/dataworkflow-tests.yml'
pull_request:
branches:
- '**'
paths:
- 'data-workflows/**'
- 'napari-hub-commons/**'
- '.github/workflows/dataworkflow-tests.yml'
defaults:
run:
working-directory: data-workflows/
jobs:
# Runs pytest for data-workflows code
tests:
name: Unit test with pytest
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Cache Python environment
uses: actions/cache@v3
id: pip-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Run unit tests
working-directory: data-workflows
run : python -m pytest
lints:
name: Linting with Black
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- uses: psf/black@stable
with:
options: "--check --diff --color --verbose"
version: "~= 23.1.0"
src: "./data-workflows"