Skip to content

Add Azure DevOps CI Option #244

Add Azure DevOps CI Option

Add Azure DevOps CI Option #244

Workflow file for this run

name: pytest-pip
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.11]
os: [ubuntu-latest, windows-latest]
name: "Test: Python ${{ matrix.python-version }}, pip, ${{ matrix.os }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest tests
version-check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.6]
os: [ubuntu-20.04]
name: "Version Check: Python ${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Cookiecutter
run: |
python -m pip install --upgrade pip
pip install cookiecutter~=1.7.2
- name: Run Version Check
run: |
python tests/version_check.py --fail