From ceacf788fe6bfd35fd7179646061998636161639 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 14:19:47 -0700 Subject: [PATCH 1/4] feat: change to uv --- .github/workflows/ci.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f1cb7a1..e4e9375 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,15 +9,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0 - with: - python-version: '3.10' - - - name: Install dependencies - run: pip install uv && uv pip install -e . --system + - name: Set up uv + uses: astral-sh/setup-uv@6 - name: Run tests - run: pytest --cov + run: uv run pytest --cov From d12f819f92ddcbd76b127b2ffd3968d8977efca4 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 14:20:18 -0700 Subject: [PATCH 2/4] feat: add lint and style checks --- .github/workflows/lint.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..533c33f --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,19 @@ +name: lint and style checks + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Clone repo + uses: actions/checkout@v4 + + - name: Set up uv + uses: astral-sh/setup-uv@v6 + + - name: Run pre-commit + run: uvx pre-commit run --all-files From a688c71b62067d589f5d7bd14e751477998cf4e0 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 14:26:30 -0700 Subject: [PATCH 3/4] fix: andd step name and also proper version --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e4e9375..2ec35b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,6 @@ name: CI on: - push: pull_request: workflow_dispatch: @@ -9,10 +8,11 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Clone repo + uses: actions/checkout@v4 - name: Set up uv - uses: astral-sh/setup-uv@6 + uses: astral-sh/setup-uv@v6 - name: Run tests run: uv run pytest --cov From 53f95e46c17e8acdb809ba3d9a1e31947f6f6e5d Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 14:27:06 -0700 Subject: [PATCH 4/4] fix: rm run lint checks on push --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 533c33f..4e7418a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,7 +1,6 @@ name: lint and style checks on: - push: pull_request: workflow_dispatch: