Batch publish #4
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: Check Pythnet | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rustup | |
run: | | |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y | |
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH | |
- name: Install Rust 1.60.0 | |
run: rustup install 1.60.0 | |
- name: Install Rust nightly-2022-04-01 | |
run: rustup install nightly-2022-04-01 | |
- name: Check formatting | |
run: cargo +nightly-2022-04-01 fmt -- --check | |
- name: Check clippy | |
run: cargo +1.60.0 clippy --bins --tests --examples -- --deny warnings | |
- name: Run tests | |
run: cargo test |