try to run tests and linting in CI #1
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] | ||
concurrency: | ||
group: tests-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Set up the IPython Kernel fixture | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10 | ||
- name: Install IPython Kernel | ||
run: | | ||
python -m pip install ipykernel | ||
python -m ipykernel install --user --name=python3.10 | ||
- name: Run ipykernel | ||
run: python -m ipykernel_launcher --debug -f /tmp/kernel.json & echo "KERNEL_PID=$!" >> $GITHUB_ENV | ||
- name: Set up Rust 1.74.0 | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain-version: '1.74.0' | ||
profile: minimal | ||
- name: Run tests | ||
run: cargo test | ||
- name: Stop ipykernel | ||
run: kill $KERNEL_PID | ||