Add test against pipeline loop #1868
Workflow file for this run
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
# ----------------------------------------------------------------------------- | |
# - invoked on push, pull_request, or manual trigger | |
# - test under at least 3 versions of python | |
# ----------------------------------------------------------------------------- | |
name: build | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Print environment values | |
run: | | |
python --version | |
cat $GITHUB_ENV | |
- name: Update pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Lint | |
run: | | |
pip install black==22.3.0 isort | |
black . --check --diff | |
isort . --check --verbose --only-modified --diff | |
- name: Install dependencies | |
run: | | |
pip install .[dev] | |
- name: Test | |
run: | | |
pytest ./tests |