debug #18
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9, "3.10", 3.11, 3.12, 3.13] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: curl -sSL https://install.python-poetry.org | python3 - | |
| - name: Configure Poetry to create virtualenvs in project root | |
| run: poetry config virtualenvs.in-project true | |
| - name: Install dependencies | |
| run: poetry install --no-root | |
| - name: Type check with mypy | |
| run: poetry run mypy proxyproviders | |
| - name: Run tests with coverage | |
| env: | |
| RUN_INTEGRATION_TESTS: 1 | |
| WEBSHARE_API_KEY: ${{ secrets.WEBSHARE_API_KEY }} | |
| run: | | |
| poetry run coverage run -m pytest | |
| poetry run coverage report --fail-under=95 |