Skip to content

Updated all workflows. #281

Updated all workflows.

Updated all workflows. #281

Workflow file for this run

name: Merge Test
on:
push:
branches:
- master
- v*.*
pull_request:
branches:
- master
- v*.*
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2

Check failure on line 24 in .github/workflows/pullrequest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pullrequest.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Prepare environment
run: |
python3 -m pip install --upgrade pip
pip install -e .
- name: Lint with flake8
run: |
pip install -e .[dev]
flake8 . --count --show-source --statistics
- name: Check with MyPy
run: |
pip install -e .[test]
mypy source unit-tests system-tests
- name: Test with pytest
run: |
pip install .[test]
pytest --cov stylist --cov-fail-under=75