Skip to content

Update Python Test Versions #44

Update Python Test Versions

Update Python Test Versions #44

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
jobs:
Test:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.8, 3.9, 3.10, 3.11, 3.12]
include:
- os: macos-latest
python: 3.12
- os: windows-latest
python: 3.12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 rply
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests
run: python test.py
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage coveralls rply
- name: Test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coverage run test.py
coveralls --service=github