Io class #110
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: Run Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Set up Docker on macOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install --cask docker | |
open /Applications/Docker.app | |
# Wait until Docker is running | |
while ! docker system info > /dev/null 2>&1; do sleep 1; done | |
- name: Set up Docker on Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install docker-desktop --confirm | |
Start-Service Docker | |
shell: powershell | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install -e .[dev] | |
- name: Format check | |
run: ruff format . | |
- name: Type check | |
run: pyright | |
- name: Run tests | |
run: pytest |