Skip to content

Commit

Permalink
Trying to fix venv in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenioseveri committed Sep 26, 2023
1 parent bcdcc10 commit be43bdf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:
- name: Install dependencies
if: steps.cache_venv.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
if [ -d "venv" ]; then rm -rf venv; fi
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install flake8 black isort pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: "Lint with black"
Expand All @@ -58,9 +61,11 @@ jobs:
black ./routingfilter --config .github/configurations/python_linters/.black --check --diff
- name: Lint with flake8
run: |
source venv/bin/activate
flake8 ./routingfilter --config .github/configurations/python_linters/.flake8 --show-source
- name: "Isort check"
run: |
source venv/bin/activate
isort ./buffalogs --sp .github/configurations/python_linters/.isort.cfg --profile black --filter-files --check-only --diff
- name: Test with pytest
run: |
Expand Down

0 comments on commit be43bdf

Please sign in to comment.