From 37a2cc210371155720104d756a64e607aaece06b Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Mon, 29 Jan 2024 16:28:19 +0800 Subject: [PATCH] Add venv to instructions. --- .github/workflows/ci.yml | 11 +++++------ README.md | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 950aea0..ad856ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,12 @@ jobs: - name: checkout repo content uses: actions/checkout@v4 - - name: Install Python requirements - run: | - pip install --upgrade pip - pip install pytest pytest-cov - - name: Test - run: pytest --cov + run: | + python3 -m venv venv + venv/bin/python3 -m pip install --upgrade pip + venv/bin/python3 -m pip install pytest pytest-cov + venv/bin/python3 -m pytest --cov - name: Coveralls if: matrix.python-version == '3.12' diff --git a/README.md b/README.md index 244f790..5696025 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ ## Requirements -Python 2.7 or Python 3.2.6 and later +Python 2.7+/3.2.6+ ## Usage