ci: Use native ubuntu package repositories #104
This file contains hidden or 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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| defaults: | |
| run: | |
| working-directory: hetznerbot | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| fail-fast: false | |
| steps: | |
| - name: Clone the repository | |
| uses: actions/checkout@v6 | |
| - name: Update package repository update | |
| run: sudo apt update | |
| - name: Install just | |
| run: sudo apt install just | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| # Only run taplo on linux to save some time. | |
| - name: Install taplo-cli | |
| run: cargo install taplo-cli || exit 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install Python dependencies | |
| run: just setup | |
| - name: Lint | |
| run: just lint |