1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python:
name: Testing wilderness
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Can add others if deemed necessary
os: [ 'ubuntu-latest' ]
# minimal and latest
py: [ '3.7', '3.11' ]
steps:
- name: Install Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Checkout
uses: actions/checkout@v2
- name: Run unit tests
run: make test_direct
- name: Run code quality tests (black)
uses: psf/black@stable
with:
# keep in sync with .pre-commit-config.yaml
version: "23.1.0"
- name: Run code quality tests (isort)
uses: jamescurtin/isort-action@master
|