Skip to content

Commit

Permalink
Use apt to install python tools
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eifrah-aws committed Oct 14, 2024
1 parent e77bb35 commit 68d04f0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ jobs:
- name: Install dependencies
working-directory: ./python
run: |
source .env/bin/activate
python -m pip install --upgrade pip
pip install mypy-protobuf
apt install -y mypy-protobuf
- name: Build Python wrapper
uses: ./.github/workflows/build-python-wrapper
Expand All @@ -123,7 +121,6 @@ jobs:
- name: Test with pytest
working-directory: ./python
run: |
source .env/bin/activate
cd python/tests/
pytest --asyncio-mode=auto --html=pytest_report.html --self-contained-html
Expand Down Expand Up @@ -189,7 +186,6 @@ jobs:
- name: Test pubsub with pytest
working-directory: ./python
run: |
source .env/bin/activate
cd python/tests/
pytest --asyncio-mode=auto -k test_pubsub --html=pytest_report.html --self-contained-html
Expand Down Expand Up @@ -219,23 +215,18 @@ jobs:
if: always()
working-directory: ./python
run: |
python3 -m venv .env
source .env/bin/activate
python -m pip install --upgrade pip
pip install flake8 isort black
sudo apt install -y flake8 isort black
- name: Lint python with isort
if: always()
working-directory: ./python
run: |
source .env/bin/activate
isort . --profile black --check --diff
- name: Lint python with flake8
if: always()
working-directory: ./python
run: |
source .env/bin/activate
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --extend-ignore=E230 --exclude=python/glide/protobuf,.env/*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
Expand All @@ -245,7 +236,6 @@ jobs:
if: always()
working-directory: ./python
run: |
source .env/bin/activate
black --check --diff .
build-amazonlinux-latest:
Expand Down Expand Up @@ -283,7 +273,6 @@ jobs:
- name: Test compatibility with pytest
working-directory: ./python
run: |
source .env/bin/activate
pytest --asyncio-mode=auto -m smoke_test --html=pytest_report.html --self-contained-html
- name: Upload test reports
Expand Down Expand Up @@ -355,7 +344,6 @@ jobs:
- name: Test with pytest
working-directory: ./python
run: |
source .env/bin/activate
cd python/tests/
pytest --asyncio-mode=auto --tls --cluster-endpoints=${{ secrets.MEMDB_MODULES_ENDPOINT }} -k server_modules --html=pytest_report.html --self-contained-html
Expand Down

0 comments on commit 68d04f0

Please sign in to comment.