Skip to content

Commit

Permalink
Better venv
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Apr 11, 2024
1 parent 0960538 commit 1a3ddd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Python virtualenv
- name: Setup Python virtualenv (*nix)
if: ${{ matrix.machine != 'pv-windows' }}
run: |
python3 -m venv .venv
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Setup Python virtualenv (windows)
if: ${{ matrix.machine == 'pv-windows' }}
run: |
python3 -m venv .venv
.venv\Scripts\activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install Python dependencies
run: python3 -m pip install -r requirements.txt

Expand Down

0 comments on commit 1a3ddd6

Please sign in to comment.