Skip to content

chore: upgrade codeql #82

chore: upgrade codeql

chore: upgrade codeql #82

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pipenv
pipenv install --python ${{ matrix.python-version }} --dev
- name: Lint with flake8
run: |
pip install flake8
flake8 . --count --show-source --statistics
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pipenv run pytest --cov=flask_htmlmin --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3