From 6a82243b4918d52660483942bba992989ff0144b Mon Sep 17 00:00:00 2001 From: Spencer Phillip Young Date: Fri, 11 Mar 2022 17:30:27 -0800 Subject: [PATCH 1/2] add unittest workflow --- .github/workflows/unittests.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/unittests.yaml diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml new file mode 100644 index 0000000..6226004 --- /dev/null +++ b/.github/workflows/unittests.yaml @@ -0,0 +1,27 @@ +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + python -m pip install pytest + - name: Test with coverage/pytest + run: | + coverage run -m pytest + - name: Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip install --upgrade coveralls + coveralls --service=github From 5b1113fdd8ae761e96af2a10de8c7ad3735ff914 Mon Sep 17 00:00:00 2001 From: Spencer Phillip Young Date: Fri, 11 Mar 2022 17:31:32 -0800 Subject: [PATCH 2/2] install coverage --- .github/workflows/unittests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 6226004..9ae62d9 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -15,7 +15,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install -r requirements.txt - python -m pip install pytest + python -m pip install pytest coverage - name: Test with coverage/pytest run: | coverage run -m pytest