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