Skip to content

Commit

Permalink
Add Github Action workflow for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil21 committed Sep 14, 2024
1 parent bf20305 commit 22cc1c5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Tests

on:
pull_request:
paths:
- airbrakes/**
push:
branches:
- master

jobs:
pytest:
name: pytest
runs-on: ${{matrix.os}}
strategy:
matrix:
python-version: ['3.12']
os: [ubuntu-latest]
fail-fast: False
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install dependencies
run: |
python -W ignore -m pip install --upgrade pip
python -W ignore -m pip install .
python -W ignore -m pip install -r requirements.txt
- name: Test with pytest
run: |
pytest -v tests/

0 comments on commit 22cc1c5

Please sign in to comment.