Merge pull request #21 from uktrade/build/automatically-install-apsw #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: | |
- "3.7.13" | |
- "3.8.12" | |
- "3.9.12" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: '${{ matrix.python-version }}' | |
- name: "Start MinIO" | |
run: ./start-minio.sh | |
- name: "Install package and python dependencies" | |
run: | | |
pip install .[dev] | |
- name: "Test" | |
run: | | |
pytest --cov | |
- uses: codecov/codecov-action@v3 |