name: Check Source on: push: branches: [main] pull_request: branches: [main] permissions: contents: read jobs: format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip pip install poetry poetry install - name: Check format with black run: | poetry run black --check . lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip pip install poetry poetry install - name: Check code with ruff run: | poetry run ruff . typing: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip pip install poetry poetry install - name: Check typing with mypy run: | poetry run mypy inlinehashes/