diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 00000000..68bf639d --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,38 @@ +name: Test + +on: + pull_request: + branches: + - 'master' + push: + branches: + - 'master' + +defaults: + run: + shell: bash + +jobs: + test: + name: pytest + strategy: + matrix: + os: [ubuntu-latest] + python-version: ['2.7', '3.4', '3.5', '3.6'] + include: + - os: ubuntu-18.04 + python-version: '3.4' + exclude: + - os: ubuntu-latest + python-version: '3.4' + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - run: pip install -r requirements.txt + - run: pytest