Skip to content

Commit

Permalink
Write Github Actions workflow for running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuppity committed Dec 25, 2023
1 parent 48af508 commit 1d359ed
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit 1d359ed

Please sign in to comment.