Skip to content

Commit

Permalink
Do not use venv for python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng committed Jan 31, 2024
1 parent 37a2cc2 commit 5034c2b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ jobs:
- name: checkout repo content
uses: actions/checkout@v4

- name: Test
- name: Test (Python 2)
if: matrix.python-version == '2.7'
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
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov
python -m pytest --cov
- name: Test (Python 3)
if: matrix.python-version != '2.7'
run: |
sudo apt-get install python3-venv
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'
Expand Down

0 comments on commit 5034c2b

Please sign in to comment.