Skip to content

Commit

Permalink
setup automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sainivedh committed Aug 2, 2023
1 parent 7b2ad6b commit 7637d23
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run tests

on:
push:
branches: [ clarifai-sdk-dev ]
pull_request:

jobs:
build:

runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9]
exclude:
- os: macos-latest
python-version: 3.9
include:
- os: windows-latest
python-version: 3.8.10
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r tests/requirements.txt
- name: Run static analysis lint
uses: pre-commit/[email protected]
- name: Run pytest
shell: bash
run: |
pytest tests/ -n auto

0 comments on commit 7637d23

Please sign in to comment.