ci-pythnet-sdk.yml 876 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Check Pythnet SDK
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/ci-pythnet-sdk.yml
  6. - pythnet/pythnet_sdk/**
  7. push:
  8. branches: [main]
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. defaults:
  13. run:
  14. working-directory: pythnet/pythnet_sdk
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: Swatinem/rust-cache@v2
  18. with:
  19. workspaces: "pythnet/pythnet_sdk -> target"
  20. - uses: actions-rs/toolchain@v1
  21. with:
  22. toolchain: 1.82.0
  23. components: rustfmt, clippy
  24. override: true
  25. - name: Format check
  26. run: cargo fmt --all -- --check
  27. if: success() || failure()
  28. - name: Clippy check
  29. run: cargo clippy --tests -- --deny warnings
  30. if: success() || failure()
  31. - name: Run executor tests
  32. run: cargo test
  33. if: success() || failure()