From bc6277141e443fb14eca7d591d72f1aff69c6368 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sun, 9 Feb 2020 10:16:16 +0100 Subject: Add automated testing via GitHub Actions CI --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..66ffb9b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: build + +on: + push: + branches: + pull_request: + branches: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Upgrade Pip + run: python -m pip install -U pip + - name: Test with pytest + run: | + python -m pip install pytest + pytest -- cgit v1.2.1