tests/emulator: add license, lint with ruff #677
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 lints | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: 0 0 * * 1 | |
jobs: | |
lint-nix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v25 | |
- name: Run nix-formatter-pack-check | |
run: nix build .#checks.x86_64-linux.nix-formatter-pack-check | |
lint-py: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v25 | |
- name: Run ruff linter | |
run: nix run 'nixpkgs#ruff' -- check | |
- name: Run ruff formatter | |
run: nix run 'nixpkgs#ruff' -- format --diff |