From 3a805c3e56806d2680f17837cc7d9aed65416745 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Mon, 30 Dec 2019 01:59:05 +0100 Subject: [PATCH] Add GitHub Actions workflow for CI --- .editorconfig | 4 ++++ .github/workflows/ci.yml | 21 +++++++++++++++++++++ tox.ini | 1 + 3 files changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.editorconfig b/.editorconfig index 430f905..fb1f19e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,7 @@ insert_final_newline = true [*.rst] indent_style = space indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..99d1262 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +on: push +jobs: + test: + strategy: + matrix: + platform: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: "3.6" + - uses: actions/setup-python@v1 + with: + python-version: "3.7" + - uses: actions/setup-python@v1 + with: + python-version: "3.8" + - run: python -m pip install --upgrade pip + - run: python -m pip install --upgrade tox + - run: tox diff --git a/tox.ini b/tox.ini index dfa20b7..820bb27 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,5 @@ [tox] +# When adding a new Python version here, please also update the list of Python versions called by the GitHub Actions workflow (.github/workflows/ci.yml). envlist = py{36,37,38},mypy [testenv]