| 1 | --- |
| 2 | name: Python package |
| 3 | |
| 4 | on: [push, pull_request] |
| 5 | |
| 6 | jobs: |
| 7 | build: |
| 8 | |
| 9 | runs-on: ${{ matrix.os }} |
| 10 | strategy: |
| 11 | matrix: |
| 12 | os: [ubuntu-latest, macos-latest, windows-latest] |
| 13 | python-version: [2.7, 3.6, 3.7, 3.8, pypy3] |
| 14 | exclude: |
| 15 | - os: windows-latest |
| 16 | python-version: 2.7 |
| 17 | fail-fast: false |
| 18 | |
| 19 | steps: |
| 20 | - uses: actions/checkout@v2 |
| 21 | - name: Set up Python ${{ matrix.python-version }} |
| 22 | uses: actions/setup-python@v2 |
| 23 | with: |
| 24 | python-version: ${{ matrix.python-version }} |
| 25 | - name: Install dependencies |
| 26 | run: | |
| 27 | python -m pip install --upgrade pip |
| 28 | pip install -U pip coverage codecov flake8 patiencediff |
| 29 | - name: Style checks |
| 30 | run: | |
| 31 | python -m flake8 |
| 32 | - name: Test suite run |
| 33 | run: | |
| 34 | python -m unittest merge3.test_merge3 |
| 35 | env: |
| 36 | PYTHONHASHSEED: random |