Write Github Actions workflow for running the tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests in Python 2 and 3 | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
py3_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.7 | |
- 3.12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run tests | |
run: python tests/test01.py | |
py2_tests: | |
runs-on: ubuntu-latest | |
container: python:2.7 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: python tests/test01.py |