Merge pull request #12 from pimoroni/patch-channel-order #32
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test (Python ${{ matrix.python }}) | |
runs-on: ubuntu-latest | |
env: | |
TERM: xterm-256color | |
strategy: | |
matrix: | |
python: ['3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Dependencies | |
run: | | |
make dev-deps | |
- name: Run Tests | |
run: | | |
make pytest | |
- name: Coverage | |
if: ${{ matrix.python == '3.9' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python -m pip install coveralls | |
coveralls --service=github | |