From e98d9ab122f7c59759ae17d3a65d5f7341b6b90f Mon Sep 17 00:00:00 2001 From: Alex Remedios Date: Mon, 23 Dec 2024 17:15:02 +0000 Subject: [PATCH] . --- .devcontainer/Dockerfile | 5 +++-- .github/workflows/pytest.yml | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2bb075d..b64c878 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,5 +6,6 @@ ARG NODE_VERSION="lts/*" RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi USER vscode RUN pip3 --disable-pip-version-check --no-cache-dir install -U \ - 'pip==22.1.2' -RUN npm install -g @devcontainers/cli@v0.72.0 \ No newline at end of file + 'pip==22.1.2' \ + 'uv==0.5.11' + RUN npm install -g @devcontainers/cli@v0.72.0 \ No newline at end of file diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 4d05014..98c5f8d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -11,6 +11,7 @@ jobs: - uses: actions/checkout@v2 - run: npm install -g @devcontainers/cli@v0.72.0 - run: devcontainer up --workspace-folder=. + - run: devcontainer exec --workspace-folder=. uv venv - run: devcontainer exec --workspace-folder=. uv pip install pre-commit pytest pytest-cov - run: devcontainer exec --workspace-folder=. pre-commit run --verbose --all-files - run: devcontainer exec --workspace-folder=. pytest --cov-report=xml --cov=src @@ -33,5 +34,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pipx install uv + - run: uv venv - run: uv pip install -e . - run: pytest --cov-report=xml --cov=src