Skip to content

fix lint issues

fix lint issues #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test Python Package
on:
push:
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "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: Run linters via pre-commit
# nosemgrep
uses: pre-commit/[email protected]
- name: Install dependencies via pip
run: |
python -m pip install --upgrade pip
python -m pip install flit
- name: Install package via flit
run: |
flit install
- name: Run tests via pytest
run: |
pytest -v --cov-report xml --cov euchre
- name: Upload test coverage to Codecov
# nosemgrep
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true