Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 23, 2024
1 parent f9340b3 commit db9c0f4
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
with:
python-version: "3.11"

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev pkg-config
- name: Install protoc
uses: arduino/setup-protoc@v3

- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v3
Expand All @@ -44,17 +52,24 @@ jobs:
- name: Install package
run: |
pip install --upgrade --upgrade-strategy eager --extra-index-url https://download.pytorch.org/whl/cpu -e '.[dev]'
pip install --upgrade --upgrade-strategy eager -e '.'
- name: Run static checks
- name: Run Python linting
run: |
mkdir -p .mypy_cache
make static-checks
- name: Run unit tests
- name: Run Python tests
run: |
make test
- name: Check Rust lint
run: |
cargo fmt --check
- name: Run Rust tests
run: |
cargo test
- name: Save cache
uses: actions/cache/save@v3
if: github.ref == 'refs/heads/master'
Expand Down

0 comments on commit db9c0f4

Please sign in to comment.