build(deps): bump actions/upload-artifact from 6 to 7 #1024
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pdftotext dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config ocrmypdf | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv sync --all-extras | |
| - name: Install git-crypt | |
| uses: Flydiverny/setup-git-crypt@v4 | |
| - name: Unlock files | |
| continue-on-error: true | |
| run: echo "${{ secrets.GIT_CRYPT_KEY }}" | base64 --decode | git-crypt unlock - | |
| - name: Run tests | |
| run: uv run task test |