|
| 1 | +# This file is managed by 'repo_helper'. Don't edit it directly. |
| 2 | +--- |
| 3 | +name: Windows |
| 4 | + |
| 5 | +on: |
| 6 | + push: |
| 7 | + branches-ignore: |
| 8 | + - 'repo-helper-update' |
| 9 | + - 'pre-commit-ci-update-config' |
| 10 | + - 'imgbot' |
| 11 | + |
| 12 | + pull_request: |
| 13 | + |
| 14 | +jobs: |
| 15 | + tests: |
| 16 | + permissions: |
| 17 | + actions: write |
| 18 | + contents: read |
| 19 | + name: "windows-2022 / Python ${{ matrix.config.python-version }}" |
| 20 | + runs-on: "windows-2022" |
| 21 | + continue-on-error: ${{ matrix.config.experimental }} |
| 22 | + env: |
| 23 | + USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13' |
| 24 | + |
| 25 | + strategy: |
| 26 | + fail-fast: False |
| 27 | + matrix: |
| 28 | + config: |
| 29 | + - {python-version: "3.7", testenvs: "py37,build", experimental: False} |
| 30 | + - {python-version: "3.8", testenvs: "py38,build", experimental: False} |
| 31 | + - {python-version: "3.9", testenvs: "py39,build", experimental: False} |
| 32 | + - {python-version: "3.10", testenvs: "py310,build", experimental: False} |
| 33 | + - {python-version: "3.11", testenvs: "py311,build", experimental: False} |
| 34 | + - {python-version: "3.12", testenvs: "py312,build", experimental: False} |
| 35 | + - {python-version: "3.13", testenvs: "py313,build", experimental: False} |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout 🛎️ |
| 39 | + uses: "actions/checkout@v4" |
| 40 | + |
| 41 | + - name: Check for changed files |
| 42 | + if: startsWith(github.ref, 'refs/tags/') != true |
| 43 | + uses: dorny/paths-filter@v2 |
| 44 | + id: changes |
| 45 | + with: |
| 46 | + list-files: "json" |
| 47 | + filters: | |
| 48 | + code: |
| 49 | + - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' |
| 50 | +
|
| 51 | + - name: Setup Python 🐍 |
| 52 | + id: setup-python |
| 53 | + if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }} |
| 54 | + uses: "actions/setup-python@v5" |
| 55 | + with: |
| 56 | + python-version: "${{ matrix.config.python-version }}" |
| 57 | + |
| 58 | + - name: Install dependencies 🔧 |
| 59 | + if: steps.setup-python.outcome == 'success' |
| 60 | + run: | |
| 61 | + python -VV |
| 62 | + python -m site |
| 63 | + python -m pip install --upgrade pip setuptools wheel |
| 64 | + python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 |
| 65 | +
|
| 66 | + - name: "Run Tests for Python ${{ matrix.config.python-version }}" |
| 67 | + if: steps.setup-python.outcome == 'success' |
| 68 | + run: python -m tox -e "${{ matrix.config.testenvs }}" -s false |
0 commit comments