This repository was archived by the owner on Dec 6, 2024. It is now read-only.
Doc - Describe setup_hint_processor using Rustdoc comments (three slashes: ///) #244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: ~ | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: pip install cairo-lang==0.10.0 | |
- name: Install rustup | |
run: curl https://sh.rustup.rs -sSf | sh -s -- -y | |
- name: Build project | |
run: cargo build | |
- name: Run unit tests | |
run: cargo test | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt | |
override: true | |
- name: Check code format | |
run: cargo +nightly fmt -- --check | |
- name: Check clippy | |
run: cargo +nightly fmt -- --check | |
lint: | |
name: Clippy checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
- name: Annotate commit with clippy warnings | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --bins --tests --examples -- -D warnings |