From 3e4fba4f9166e023b17d091d6adba70c0804525a Mon Sep 17 00:00:00 2001 From: Caleb Ellington Date: Fri, 5 Aug 2022 09:16:30 -0400 Subject: [PATCH] Create unit-test.yml --- .github/workflows/unit-test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/unit-test.yml diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 0000000..cdfc97d --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,29 @@ +# This workflow will install Python dependencies and run tests with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Unit test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install . + - name: Test with unittest + run: | + python tests.py