From 7b38df614814051c9da805c31e6a34bb2e814afb Mon Sep 17 00:00:00 2001 From: Din Date: Sat, 4 Jan 2025 17:52:06 +0500 Subject: [PATCH] try running pytest in actions --- .github/workflows/run-tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..1f12bd4 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,27 @@ +name: Run Tests + +on: + push: + branches: ["tests-workflow"] + # pull_request: + # types: [opened, synchronize] + # branches: ["main"] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install uv + uses: astral-sh/setup-uv@v5 + - name: Install dependencies + run: uv sync + - name: Run tests + run: uv run pytest \ No newline at end of file