From 1f52c129e6159aaa4d159997f730b39d5b446a82 Mon Sep 17 00:00:00 2001 From: Matanya Date: Mon, 23 Dec 2024 13:44:51 -0700 Subject: [PATCH] fix: update ci --- .fernignore | 1 + .github/workflows/ci.yml | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.fernignore b/.fernignore index 6c68167..ff02d7c 100644 --- a/.fernignore +++ b/.fernignore @@ -1,6 +1,7 @@ # Specify files that shouldn't be modified by Fern .github/workflows/release.yml .github/workflows/conventional-pr.yml +.github/workflows/ci.yml mypy.ini ruff.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49d3942..432f60f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,32 +6,30 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - - name: Bootstrap poetry - run: | - curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Install dependencies - run: poetry install + run: uv sync - name: Compile - run: poetry run mypy . + run: uv run mypy . + test: runs-on: ubuntu-20.04 steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - - name: Bootstrap poetry - run: | - curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Install dependencies - run: poetry install - + run: uv sync - name: Test - run: poetry run pytest -rP . + run: uv run pytest -rP .