From 6140f04fe17ae7c542a29c207c9a45f6200f4e2c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 28 Oct 2019 22:00:43 +0200 Subject: [PATCH 1/1] Test Windows, macOS and Linux on GitHub Actions (#1085) --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2d1ae0a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: [3.6, 3.7] + os: [ubuntu-latest, macOS-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade coverage + python -m pip install -e ".[d]" + + - name: Unit tests + run: | + coverage run tests/test_black.py -- 2.39.5