Type Annotate the *heck* out of social-core #1020
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: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| types: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - '3.9' | |
| - '3.13' | |
| env: | |
| PYTHON_VERSION: ${{ matrix.python-version }} | |
| PYTHONUNBUFFERED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: requirements*.txt | |
| - name: Install System dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox | |
| - name: Type check with tox | |
| run: tox -e "py${PYTHON_VERSION/\./}-pyright" | |
| test: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| env: | |
| PYTHON_VERSION: ${{ matrix.python-version }} | |
| PYTHONUNBUFFERED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: requirements*.txt | |
| - name: Install System dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install coverage tox | |
| - name: Test with tox | |
| run: tox -e "py${PYTHON_VERSION/\./}" | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| flags: unittests | |
| name: Python ${{ matrix.python-version }} |