Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nadzyah committed Feb 2, 2024
1 parent 258c254 commit 6f77ade
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/test_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
needs: lint-and-test
steps:
- uses: actions/checkout@v4
- name: Install dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
Expand All @@ -42,13 +42,21 @@ jobs:
toolchain: stable
override: true
- uses: actions/setup-python@v5
- run: pip install black pytest maturin virtualenv
with:
python-version: "3.10"
- name: Create virtual environment
run: python -m venv venv
- name: Install Python dependencies
run: |
./venv/bin/pip install black pytest maturin virtualenv
- name: Check tests style with black
run: black --check client/hwlib/pytests/
- name: Prepare the Rust lib with Python bindings and run pytest
run: ./venv/bin/black --check client/hwlib/pytests/
- name: Build the Rust lib with Python bindings
run: |
virtualenv venv
source venv/bin/activate
cd client/hwlib/
maturin develop
pytest pytests/
- name: Run pytest
run: |
cd client/hwlib/
../venv/bin/pytest pytests/

0 comments on commit 6f77ade

Please sign in to comment.