Merge pull request #63 from PyO3/update-stable-abi #119
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build and test | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install the MinGW and LLVM toolchains | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y gcc-mingw-w64 llvm | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose -- --test-threads=1 | |
zigbuild: | |
name: Test zig dlltool | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: goto-bus-stop/setup-zig@v1 | |
with: | |
version: 0.10.1 | |
- name: Run tests with zig | |
run: ZIG_COMMAND=zig cargo test --verbose | |
zigwheel: | |
name: Test python -m ziglang dlltool | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install ziglang package | |
run: pip install ziglang | |
- name: Run tests with python -m ziglang | |
run: ZIG_COMMAND="python -m ziglang" cargo test --verbose | |
fmt: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run cargo fmt | |
run: cargo fmt -- --check | |
clippy: | |
name: Clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run cargo clippy | |
run: cargo clippy --tests -- --deny warnings |