diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..af78130 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Unit tests + +env: + # This should match the default python_version build arg + PYTHON_VERSION: 3.8 + TOX_ENV: py38 + +on: + push: + branches: + - "*" + pull_request: + types: [opened, reopened] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.x + uses: actions/setup-python@v1 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install tox + run: pip install tox + + - name: Run tests + run: tox -e ${{ env.TOX_ENV }} \ No newline at end of file