From ab70683111a2b5c8b7cfa0e5082e96205d5b2ff1 Mon Sep 17 00:00:00 2001 From: Ke Zhu Date: Tue, 31 Aug 2021 21:21:09 -0400 Subject: [PATCH] Enable Python CI --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..76323bc --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - '3.7' + - '3.8' + - '3.9' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Upgrade pip version + run: | + python -m pip install -U pip + - run: pip install -r requirements.txt + - run: pip install pytest assertpy + - run: pytest