Skip to content

Commit

Permalink
ci: Add CI workflow for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Oct 6, 2024
1 parent 4728d17 commit 23ba4c4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'

jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.12]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Generate dependencies
run: |
pip install -e ".[dev]"
ruff check .
- name: Run tests
run: python -m unittest discover -s tests

0 comments on commit 23ba4c4

Please sign in to comment.