Add Gitea Actions workflow: ci.yml
Some checks failed
CI / test (push) Failing after 1m6s

This commit is contained in:
2026-02-05 14:27:03 +00:00
parent 148f0b60c6
commit 779c23141b

39
.gitea/workflows/ci.yml Normal file
View 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