From b9a6837ff681eb2fea2a0045a839b0cd38b7ba41 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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..60cd0ed2 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,31 @@ +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'] + fail-fast: false + 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