2022-01-03 13:43:52 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
components: rustfmt
|
|
|
|
- name: Check Formatting
|
|
|
|
run: rustfmt --check src/*rs
|
|
|
|
|
|
|
|
Test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
python-version: [3.9]
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
|
|
|
python-version: "3.10"
|
|
|
|
- os: ubuntu-latest
|
|
|
|
python-version: 3.8
|
|
|
|
- os: ubuntu-latest
|
|
|
|
python-version: 3.7
|
|
|
|
runs-on: "${{ matrix.os }}"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
2022-01-17 12:57:34 +00:00
|
|
|
- uses: Swatinem/rust-cache@v1
|
|
|
|
- run: python3 -m pip install nox
|
|
|
|
- run: nox -s test-${{ matrix.python-version }}
|