Skip to content

Commit

Permalink
fix: 🐛 no venv poetry install for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
  • Loading branch information
onuralpszr committed Sep 24, 2023
1 parent 29ff25b commit ba3a32c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set up a virtual environment for Python ${{ matrix.python-version }}
- name: Setup an environment for Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade virtualenv
virtualenv venv
source venv/bin/activate
python -m pip install --upgrade poetry
poetry config virtualenvs.create false
poetry install
- name: Lint with flake8
run: |
source venv/bin/activate
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test
run: |
source venv/bin/activate
kfk
cd tests && python -m pytest
- name: Build
run: |
source venv/bin/activate
python -m build
twine check --strict dist/*

0 comments on commit ba3a32c

Please sign in to comment.