Add base Django project #1
Workflow file for this run
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: Tycho | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| types: [ opened, synchronize, reopened, edited ] | |
| paths: | |
| - "src/tycho/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-tycho: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./src/tycho | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.9.7" | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "./src/tycho/.python-version" | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| build-docker-tycho: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Build tycho Docker image | |
| run: bin/compose build tycho | |
| lint-tycho: | |
| needs: build-tycho | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./src/tycho | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.9.7" | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "./src/tycho/.python-version" | |
| - name: Lint with Black | |
| run: uv run black --check . | |
| - name: Lint with Ruff | |
| run: uv run ruff check . | |
| - name: Lint with MyPy | |
| run: uv run mypy . |