Skip to content

Merge pull request #605 from OpenSPP/add-oca-gen-metapackage-hook #147

Merge pull request #605 from OpenSPP/add-oca-gen-metapackage-hook

Merge pull request #605 from OpenSPP/add-oca-gen-metapackage-hook #147

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: pre-commit/action@v2.0.3
tests:
name: "Test with python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.machine }}
strategy:
matrix:
include:
- python-version: "3.6"
machine: ubuntu-20.04
- python-version: "3.7"
machine: ubuntu-20.04
- python-version: "3.8"
machine: ubuntu-20.04
- python-version: "3.10"
machine: ubuntu-22.04
- python-version: "3.11"
machine: ubuntu-22.04
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: python -m pip install tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: python -m tox
# lcov support not available in python 3.6
- name: "Generate lcov report"
run: python -m pip install coverage && python -m coverage lcov
if: ${{ matrix.python-version != '3.6' }}
- name: Coveralls
uses: coverallsapp/github-action@v2
if: ${{ matrix.python-version != '3.6' }}