From 7b6fcaafc04d56017bc557e6644817ad4773a213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Morales?= Date: Tue, 8 Oct 2024 11:02:46 -0600 Subject: [PATCH] use uv for env creation --- .github/workflows/ci.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ca372bac..4aa742cda 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,10 +21,10 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-13, windows-latest] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ["3.8", "3.9", "3.10", "3.11"] exclude: - os: windows-latest - python-version: '3.11' + python-version: "3.11" env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_NIXTLA_TMP }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_NIXTLA_TMP }} @@ -32,15 +32,14 @@ jobs: - name: Clone repo uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - - name: Set up environment - uses: mamba-org/setup-micromamba@617811f69075e3fd3ae68ca64220ad065877f246 # v2.0.0 - with: - environment-file: environment-cpu.yml - create-args: python=${{ matrix.python-version }} - cache-environment: true + - name: Set up uv + uses: astral-sh/setup-uv@c9aa747934b6867b18bf8f6624a8929c4f76147b # v3.1.4 + + - name: Set up python + run: uv python install ${{ matrix.python-version }} - name: Install pip requirements - run: pip install ./ + run: uv pip install ".[dev]" - name: Tests run: nbdev_test --do_print --timing --n_workers 0 --flags polars