Skip to content

fix: Updates CI Python versions #26

fix: Updates CI Python versions

fix: Updates CI Python versions #26

Workflow file for this run

name: Tests
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, 3.10, 3.11 ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint
run: |
python -m flake8 --exit-zero
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Test
run: |
python -m pytest tests --cov=boilerpy3 --disable-warnings