Skip to content

[WIP] Disable old python versions for macOS latest runner #330

[WIP] Disable old python versions for macOS latest runner

[WIP] Disable old python versions for macOS latest runner #330

Workflow file for this run

name: CI
on:
pull_request:
jobs:
CI:
continue-on-error: true
runs-on: ${{ matrix.os }}
# Supported Versions:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
strategy:
matrix:
os: [macos-latest, ubuntu-20.04]
python-version: [3.8, 3.11]
include:
- os: ubuntu-20.04
python-version: 3.6
- os: ubuntu-20.04
python-version: pypy-3.7
- os: macos-latest
python-version: pypy-3.11
steps:
- uses: actions/checkout@v2
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install flake8==5.0.4 pylint pytest
pip install -r requirements.txt
pip install -r test/requirements.txt
python setup.py install
- name: Run Linter
run: |
flake8 setup.py example stone test
pylint --rcfile=.pylintrc setup.py example stone test
- name: Run Unit Tests
run: |
pytest
- name: Run MyPy
if: matrix.python-version != 'pypy-3.7'
run: |
pip install enum34 mypy typed-ast types-six
./mypy-run.sh