From a0eaa3880a9319440078e3681703a636dd941d28 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Mon, 13 Nov 2023 18:22:12 +0000 Subject: [PATCH] Run actions in venvs --- .github/workflows/continuous-integration.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e3a6005..dfcb600 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -4,8 +4,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: pip install build - - run: python -m build --sdist + - run: python -m venv .venv + - run: .venv/bin/pip install build + - run: .venv/bin/python -m build --sdist - uses: actions/upload-artifact@v3 with: name: sdist @@ -19,6 +20,7 @@ jobs: with: name: sdist - run: tar --gzip --extract --verbose --strip-components=1 --file videojitter-*.tar.gz - - run: pip install --requirement pylint-requirements.txt --requirement requirements.txt + - run: python -m venv .venv + - run: .venv/bin/pip install --requirement pylint-requirements.txt --requirement requirements.txt # TODO: also pylint the test code - - run: pylint src + - run: .venv/bin/pylint src