Use Jinja2 indent filter instead of custom code #39
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: GitHub based tests | |
on: | |
# Template the default branch rather than hard-coding it | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
architecture: ['x64'] | |
os: [ 'ubuntu-latest' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.architecture }} | |
- name: Environment update | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
- name: Install package | |
run: | | |
python -m pip install -Ie .[dev] | |
- name: Test with pytest | |
run: | | |
pytest |