From a883d5a158cf835ee489f490c60da5fb02750cf3 Mon Sep 17 00:00:00 2001 From: Joe Snell Date: Fri, 9 Oct 2020 10:10:43 -0500 Subject: [PATCH] add workflow --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ .gitignore | 2 ++ .tool-versions | 1 + bin/format | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .tool-versions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..29c7bc1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: pull_request + +jobs: + ci: + strategy: + fail-fast: false + matrix: + python-version: [3.8, 3.9] + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - uses: Gr1N/setup-poetry@v4 + - run: poetry --version + - run: bin/format --check + - run: bin/test diff --git a/.gitignore b/.gitignore index 1f9a310..b6a34d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ dist *.pyc /__pycache__/ +.DS_Store +.vscode diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..52d1c3e --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +python 3.8.0 diff --git a/bin/format b/bin/format index 05ec6b6..d26bf49 100755 --- a/bin/format +++ b/bin/format @@ -2,4 +2,4 @@ set -e -poetry run black . +poetry run black . "$@"