Decouple CLI and config file #669
Workflow file for this run
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: Tests | |
on: | |
push: | |
paths: | |
- '**.rs' | |
pull_request: | |
paths: | |
- '**.rs' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --all-targets --all-features --verbose | |
- name: Check docs | |
run: cargo dev generate-all --mode=check | |
cargo-install: | |
name: Test cargo installation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check cargo install | |
run: | | |
cargo install --path fortitude | |
fortitude --help | |
pip-install: | |
name: Test pip installation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Check pip install | |
run: | | |
pip install . | |
fortitude --help |