diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 218c146..8d308b2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Python package +name: Unit tests on: push: @@ -89,3 +89,21 @@ jobs: pwd ls -l python ./tests/test_all.py + + examples: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["macos-10.15", "macos-11", "macos-12"] + python-version: ["2.7", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Non-regression tests + run: | + export PYTHONPATH=$PYTHONPATH:$(pwd) + zsh ./tests/examples_macos.sh diff --git a/README.md b/README.md index 077da0b..4279e20 100644 --- a/README.md +++ b/README.md @@ -36,5 +36,5 @@ When modifications are made, then (depending on the details of the file format) ## Development status [![codecov](https://codecov.io/gh/LRGH/elfesteem/branch/master/graph/badge.svg)](https://codecov.io/gh/LRGH/elfesteem) -[![Build Status](https://github.com/LRGH/elfesteem/workflows/Python%20package/badge.svg?event=push)](https://github.com/LRGH/elfesteem/actions?query=workflow%3A%22Python+package%22+branch%3Amaster+event%3Apush) +[![Build Status](https://github.com/LRGH/elfesteem/workflows/Unit%20tests/badge.svg?event=push)](https://github.com/LRGH/elfesteem/actions?query=workflow%3A%22Unit+tests%22+branch%3Amaster+event%3Apush) [![Build Status](https://travis-ci.org/LRGH/elfesteem.svg?branch=master)](https://travis-ci.org/LRGH/elfesteem)