From a5d0ec9ddf93d3328d0a2b8001aa8a2cb68c285c Mon Sep 17 00:00:00 2001 From: Oba Date: Tue, 1 Oct 2024 09:08:41 +0200 Subject: [PATCH] ci: nightly tests use uv (#1453) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Time spent on this PR: ## Pull request type Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [x] Other (please describe): ci ## What is the current behavior? Resolves # ## What is the new behavior? - nightly tests use uv - - - This change is [Reviewable](https://reviewable.io/reviews/kkrt-labs/kakarot/1453) --- .github/workflows/nightly-fuzzing.yml | 35 ++++----------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/nightly-fuzzing.yml b/.github/workflows/nightly-fuzzing.yml index c54b1581e..9083bd3cd 100644 --- a/.github/workflows/nightly-fuzzing.yml +++ b/.github/workflows/nightly-fuzzing.yml @@ -16,38 +16,13 @@ jobs: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10.14 - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v2 with: - python-version: 3.10.14 - - name: Load cached Poetry installation - id: cached-poetry - uses: actions/cache@v4 + enable-cache: true + cache-dependency-glob: uv.lock + - uses: actions/setup-python@v5 with: - path: ~/.local - key: poetry-${{ runner.os }} - - name: Install Poetry - if: steps.cached-poetry.outputs.cache-hit != 'true' - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - virtualenvs-path: .venv - installer-parallel: true - - name: Enforce poetry config - run: | - poetry config virtualenvs.in-project true - poetry config virtualenvs.create true - poetry config virtualenvs.path .venv - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v4 - with: - path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: make setup + python-version-file: .python-version - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: