Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Merge pull request #73 from 0xBEEFCAF3/fix-python-url-import #13

Merge pull request #73 from 0xBEEFCAF3/fix-python-url-import

Merge pull request #73 from 0xBEEFCAF3/fix-python-url-import #13

Workflow file for this run

name: CI Checks
on: [push, pull_request]
jobs:
Test:
name: Build and Test
strategy:
matrix:
toolchain: [stable, nightly]
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Rust ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- name: Build on Rust ${{ matrix.toolchain }}
run: cargo build --color always --all-targets --features _danger-local-https
- name: Run tests
run: cargo test --features=_danger-local-https
Format:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install nightly toolchain"
uses: dtolnay/rust-toolchain@nightly
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- name: "Run formatting check"
run: cargo fmt --all -- --check
Lint:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install nightly toolchain"
uses: dtolnay/rust-toolchain@nightly
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- name: "Install clippy"
run: rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
- name: "Run linting"
run: cargo clippy --all-targets --keep-going --all-features -- -D warnings