File: test.yml

package info (click to toggle)
flake8-black 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: python: 207; sh: 38; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: test

on: [push, pull_request]

jobs:
  run-tests:
    runs-on: ${{ matrix.os }}
    defaults:
      run:
        shell: bash
    strategy:
      fail-fast: false
      matrix:
        os: [windows-latest, macos-latest, ubuntu-latest]
        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
        black-version: ["23.9.1", "25.9.0"]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Git configuration
      run: |
        git config core.autocrlf false
        git reset --hard
    - name: Build packages, and install the wheel
      run: |
        pip install build black==${{ matrix.black-version }}
        python -m build
        cd dist
        python -m pip install flake8_black-*.whl
        cd ..
        # Wheel should now be installed
        flake8 --version
    - name: Run tests
      run: |
        # Unpack the tests from the sdist tar-ball
        # (want to confirm the manifest was complete)
        tar -zxvf dist/flake8_black-*.tar.gz
        cd flake8_black-*/tests/
        WIN="$([ "$RUNNER_OS" == "Windows" ];echo $?)" bash ./run_tests.sh