diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b0379d5 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,35 @@ +name: Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + cache-dependency-path: | + work/requirements.txt + work/pyproject.toml + + - name: Install dependencies + working-directory: work + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e ".[dev]" + + - name: Run test suite + working-directory: work + run: python -m pytest -q -p no:cacheprovider