From 779c23141b38e27bde0ea6c42f51f2e99f86380a Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 5 Feb 2026 14:27:03 +0000 Subject: [PATCH] Add Gitea Actions workflow: ci.yml --- .gitea/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..48e1e5f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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