From a1de53624dbde2ac08980c7324ec61ea6e6f4dc3 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 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..7b832408 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,30 @@ +name: Test + +on: + pull_request: + branches: + - 'master' + push: + branches: + - 'master' + +defaults: + run: + shell: bash + +jobs: + test: + name: pytest + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['2.7', '3.4', '3.5', '3.6'] + 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