diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..97dd996 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Lint and Test + +on: + pull_request: + branches: [main, "feat/**", "fix/**"] + push: + branches: [main] + +jobs: + lint-and-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + version: "0.6.14" + enable-cache: true + + - name: Install dependencies + run: uv sync --dev --all-extras + + - name: Create test env + run: cp tests/sample.env tests/.env + + - name: Tests (pytest) + run: uv run pytest tests/ -v