From 9e4f2a82e3dfc65b4aa2b7877318911d5c81e91d Mon Sep 17 00:00:00 2001 From: Jeremy Goh <30731072+thatlittleboy@users.noreply.github.com> Date: Sun, 18 Aug 2024 18:52:30 +0800 Subject: [PATCH] chore: use uv and upgrade actions (#106) --- .github/workflows/badges.yml | 2 +- .github/workflows/tests.yml | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/badges.yml b/.github/workflows/badges.yml index 037be35..2edceca 100644 --- a/.github/workflows/badges.yml +++ b/.github/workflows/badges.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: db_count run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 651fb1c..e8de390 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,16 +28,19 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" check-latest: false - name: Setup python dependencies - run: pip install ".[dev]" + # Do regular install NOT editable install + run: | + python -m pip install --upgrade uv + uv pip install --system '.[dev]' - name: Run the comparison of gallery files run: | @@ -55,21 +58,24 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] experimental: [false] # include: - # - python-version: "3.12-dev" + # - python-version: "3.13-dev" # experimental: true steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} check-latest: false - name: Setup python dependencies - run: pip install ".[dev]" + # Do regular install NOT editable install + run: | + python -m pip install --upgrade uv + uv pip install --system '.[dev]' - name: Run pytest run: |