diff --git a/.gitea/workflows/UnitTests.yaml b/.gitea/workflows/UnitTests.yaml index c7529b31..241dc572 100644 --- a/.gitea/workflows/UnitTests.yaml +++ b/.gitea/workflows/UnitTests.yaml @@ -17,6 +17,8 @@ jobs: - name: Install dependencies if requirements.txt exists run: | + python3 -m venv venv + source venv/bin/activate if [ -f requirements.txt ]; then pip install -r requirements.txt else @@ -25,4 +27,5 @@ jobs: - name: Run unit tests run: | + source venv/bin/activate python3 -m unittest tests.py