This commit is contained in:
39
.gitea/workflows/ci.yml
Normal file
39
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
source $HOME/.cargo/env
|
||||
rustc --version
|
||||
cargo --version
|
||||
- name: Build
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
cargo build --release
|
||||
- name: Run tests
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
cargo test --all-features
|
||||
- name: Clippy
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
cargo clippy --all-targets
|
||||
- name: Format check
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
cargo fmt --check
|
||||
Reference in New Issue
Block a user