Skip to content

MOAR Improvements: Cross-OS testing, .gitignore updates, supporting… #12

MOAR Improvements: Cross-OS testing, .gitignore updates, supporting…

MOAR Improvements: Cross-OS testing, .gitignore updates, supporting… #12

Workflow file for this run

name: Python package
on:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
# - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3
include:
- python-version: 3.6
os: ubuntu-20.04
- python-version: 3.6
os: windows-latest
- python-version: 3.6
os: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Debugging
run: ls -lah
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: test_artifacts/cobertura.xml