| 1 | name: Test |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - master |
| 6 | pull_request: |
| 7 | branches: |
| 8 | - master |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: '${{ matrix.os }}' |
| 12 | strategy: |
| 13 | matrix: |
| 14 | os: |
| 15 | - ubuntu-22.04 |
| 16 | - ubuntu-latest |
| 17 | python-version: |
| 18 | - '3.8' |
| 19 | - '3.9' |
| 20 | - '3.10' |
| 21 | - '3.11' |
| 22 | - '3.12' |
| 23 | steps: |
| 24 | - uses: actions/checkout@v2 |
| 25 | - uses: actions/setup-python@v4 |
| 26 | with: |
| 27 | python-version: '${{ matrix.python-version }}' |
| 28 | cache: pip |
| 29 | cache-dependency-path: setup.py |
| 30 | - run: sudo apt-get update |
| 31 | - run: ./deps.sh --yes |
| 32 | - run: pip install coverage pytest pytest-cov |
| 33 | - run: pip install . |
| 34 | - run: pytest -v --cov=binwalk testing |