From 97c817cd2755542341cb73953d193cf7b9c56bd4 Mon Sep 17 00:00:00 2001 From: Eli Skeggs <1348991+skeggse@users.noreply.github.com> Date: Mon, 21 Mar 2022 11:45:22 -0700 Subject: [PATCH] ci: switch to github actions --- .github/workflows/python.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/python.yml 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