From 0755c9a7c323297ec7e6bc678da982bd3fb57376 Mon Sep 17 00:00:00 2001 From: jodhus <80434370+jodhus@users.noreply.github.com> Date: Thu, 25 Mar 2021 10:41:36 -0400 Subject: [PATCH] Added action for running tests --- .github/workflows/run-tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..234bd46 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,33 @@ +# This is a basic workflow to help you get started with Actions + +name: Run tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install pyebur128 + run: | + python -m pip install --upgrade pip + python -m pip install .[tests] + - name: Test with pytest + run: | + python -m pytest