From 66249941acf896bb023f281b2c3e9a811b35d9ac Mon Sep 17 00:00:00 2001 From: Hongkai Dai Date: Sun, 12 Jan 2025 18:27:38 -0800 Subject: [PATCH] CI should install dependencies in a venv. --- .github/workflows/python-app.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a3825c6..70566ab 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -17,6 +17,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up virtual environment + run: | + python -m venv venv + source venv/bin/activate + - name: Install dependencies + run: | + pip install -e . - name: Linting run: flake8 ./ - name: unit test