ci-pythnet-sdk.yml 720 B

123456789101112131415161718192021222324252627
  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: actions-rust-lang/setup-rust-toolchain@v1
  18. - name: Format check
  19. run: cargo fmt --all -- --check
  20. if: success() || failure()
  21. - name: Clippy check
  22. run: cargo clippy -p pythnet-sdk --all-targets -- --deny warnings
  23. if: success() || failure()
  24. - name: Run executor tests
  25. run: cargo test -p pythnet-sdk
  26. if: success() || failure()