From 3df865081cffa2887dcdc6c372f4ccd1fb97cc83 Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Fri, 31 May 2024 00:04:05 +0000 Subject: [PATCH] Use `pdm install` to install dependencies Signed-off-by: Fabrice Normandin --- .github/workflows/build.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 95a92071..a186f8e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,14 +43,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - run: pip install pre-commit - - run: pre-commit --version - - run: pre-commit install - - run: pre-commit run --all-files + - run: pip install pdm - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -e . + run: pdm install - name: Test with pytest (very fast) run: pytest -v --shorter-than=1.0 --cov=project --cov-report=xml --cov-append - name: Test with pytest (fast) @@ -75,14 +70,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - run: pip install pre-commit - - run: pre-commit --version - - run: pre-commit install - - run: pre-commit run --all-files + - run: pip install pdm - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -e . + run: pdm install - name: Test with pytest run: pytest -v --cov=project --cov-report=xml --cov-append