From 7ff08048ccb049c318cbf6e70692439062be868c Mon Sep 17 00:00:00 2001 From: Alex Nordlund Date: Sat, 23 Jul 2022 10:51:00 +0200 Subject: [PATCH] Move tests to GitHub actions --- .github/workflows/test.yml | 21 +++++++++++++++++++++ .gitignore | 1 + .travis.yml | 5 ----- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 .gitignore delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..30255f9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["2.7", "3.7", "3.8", "3.9", "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 }} + # You can test your matrix by printing the current Python version + - name: Display Python version + run: python -m unittest discover diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a65c60c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: python -python: - - "2.7" - - "3.7" -script: python -m unittest discover