ci #14
Workflow file for this run
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: ci | |
run-name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install Python | |
run: uv python install | |
- name: Install dependencies | |
run: uv sync --all-extras --dev | |
- name: Lint everything | |
run: uvx tomlscript lint | |
run-static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install Python | |
run: uv python install | |
- name: Install dependencies | |
run: uv sync --all-extras --dev | |
- name: Run static analysis | |
run: uvx tomlscript typecheck | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install Python | |
run: uv python install | |
- name: Install dependencies | |
run: uv sync --all-extras --dev | |
- name: Run tests | |
run: uvx tomlscript test |