Test #5
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: Test | |
| on: | |
| # push: | |
| # pull_request: | |
| workflow_call: | |
| workflow_dispatch: | |
| concurrency: test-${{ github.sha }} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHON_VERSION: "3.9" | |
| CONTIGUITY_DATA_KEY: ${{ secrets.CONTIGUITY_DATA_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Check length of CONTIGUITY_DATA_KEY | |
| run: | | |
| echo "Length: ${#CONTIGUITY_DATA_KEY}" | |
| - name: Run tests | |
| run: uv run pytest tests |