Add ruff formatting and linting (#65) #120
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: ARM64 Tests | |
on: | |
push: | |
branches: master | |
pull_request: | |
jobs: | |
build: | |
runs-on: [self-hosted, linux, ARM64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
- name: Create virtualenv | |
run: | | |
virtualenv -p python3 venv | |
- name: Install dependencies | |
run: | | |
source venv/bin/activate | |
python -m pip install --upgrade pip | |
pip install pytest cffi | |
# Assumes recent Mono | |
- name: Build | |
run: | | |
source venv/bin/activate | |
pip install -e . | |
- name: Test with pytest | |
run: | | |
source venv/bin/activate | |
pytest |