name: CI on: push: branches: [main] pull_request: branches: [main] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install ruff - run: ruff check src/ tests/ - run: ruff format --check src/ tests/ types: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install -e ".[dev]" - run: mypy src/ test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install -e ".[dev]" - run: pytest tests/ --cov=src --cov-report=term-missing -v docker: runs-on: ubuntu-latest needs: [lint, types, test] steps: - uses: actions/checkout@v4 - run: docker build -t reddit-media-collector .