Skip to content

Commit

Permalink
Use Github Actions CI for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
januszm committed Jul 11, 2021
1 parent 8d10552 commit ba71d3a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba71d3a

Please sign in to comment.