diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..977ed8b --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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 \ No newline at end of file