From 5b56838dc21bbffbbb115479dd332f134fbed342 Mon Sep 17 00:00:00 2001 From: flofriday Date: Sat, 21 Dec 2024 17:56:38 +0100 Subject: [PATCH] Migrate CI to uv --- .github/workflows/CI.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 96f2bb1..60582b2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -5,22 +5,23 @@ name: CI on: [push] jobs: - # test: - # runs-on: Ubuntu-22.04 - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Set up Python 3.13 - # uses: actions/setup-python@v5 - # with: - # python-version: "3.13" - - # - name: Install dependencies - # run: python -m pip install -r requirements.txt - - # - name: Test with pytest - # run: python -m pytest + test: + runs-on: Ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Set up Python + run: uv python install + + - name: Install dependencies + run: uv sync + + - name: Test with pytest + run: uv run pytest deploy: needs: test