Skip to content

Commit a343c20

Browse files
committed
Add rust checks to CI, remove redundant ua-parser-rs checks
pip install ./ua-parser-rs should be building wheels on the fly before installing...
1 parent cf094f8 commit a343c20

3 files changed

Lines changed: 25 additions & 155 deletions

File tree

.github/workflows/py-checks.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/py-tests.yml

Lines changed: 0 additions & 114 deletions
This file was deleted.

.github/workflows/rs-checks.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: rs checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
permissions: {}
8+
9+
jobs:
10+
rs-checks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout working copy
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
15+
with:
16+
submodules: true
17+
fetch-depth: 0
18+
persist-credentials: false
19+
- name: cargo check
20+
run: cargo check --manifest-path ua-parser-rs/Cargo.toml
21+
- name: cargo clippy # don't run clippy if check fails
22+
run: cargo clippy --manifest-path ua-parser-rs/Cargo.toml
23+
- name: cargo fmt
24+
if: always()
25+
run: cargo fmt --check --manifest-path ua-parser-rs/Cargo.toml

0 commit comments

Comments
 (0)