From ba71d3a8a0794dae496a7cb4b67c88366cebfe04 Mon Sep 17 00:00:00 2001 From: Janusz Mordarski Date: Sun, 11 Jul 2021 19:56:36 +0200 Subject: [PATCH] Use Github Actions CI for pull requests --- .github/workflows/ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..96cd658 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-linux: + timeout-minutes: 30 + strategy: + matrix: + os: ["ubuntu-latest"] + python: ["3.7", "3.8", "3.9"] + + runs-on: ${{ matrix.os }} + name: test on ${{ matrix.python }} (${{ matrix.os }}) + env: + AWS_DEFAULT_REGION: us-east-2 + + steps: + - uses: actions/checkout@master + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - run: pip install -e '.[dev]' + - run: pytest tests + + build-windows: + timeout-minutes: 30 + strategy: + matrix: + os: ["windows-2016"] + python: ["3.7", "3.8", "3.9"] + + runs-on: ${{ matrix.os }} + name: test on ${{ matrix.python }} (${{ matrix.os }}) + env: + AWS_DEFAULT_REGION: us-east-2 + + steps: + - uses: actions/checkout@master + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + + - name: Install deps + run: pip install -e '.[dev]' + + - name: Run tests + run: pytest tests