From 38cb52445b51caee1e35d773745984390d3c07fb Mon Sep 17 00:00:00 2001 From: JJTech Date: Sat, 18 May 2024 21:49:42 -0400 Subject: [PATCH] ci: use venv --- .github/workflows/python-package.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 403ea11..7090a78 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -20,14 +20,18 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Activate virtualenv + run: | + . .venv/bin/activate + echo PATH=$PATH >> $GITHUB_ENV - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install -e '.[tests]' + pip install --upgrade pip + pip install -e '.[tests]' - name: Test with pytest run: | pytest