test: unit + integration suite for downstream usage, with CI #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [ dtq ] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Matches the DSpace-ISstag-integration consumer CI matrix; the library | |
| # itself declares support for >=3.8 (see setup.py). | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: | | |
| setup.py | |
| requirements-test.txt | |
| - name: Install package + test deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| pip install -r requirements-test.txt | |
| - name: Run tests | |
| run: python -m pytest tests/ -v |