Bump python-dotenv from 1.2.1 to 1.2.2 #171
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: Unit Tests on Windows | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - "[0-9]+\\.[0-9]+\\.[0-9]+" | |
| jobs: | |
| test: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🐍 Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: 📦 Install Poetry | |
| run: | | |
| (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python - | |
| - name: 📦 Add Poetry to PATH | |
| run: | | |
| echo "$env:APPDATA\Python\Scripts" | Out-File -Append -Encoding ascii $env:GITHUB_PATH | |
| echo "Poetry PATH set to $env:APPDATA\Python\Scripts" | |
| - name: ✅ Check Poetry version | |
| run: poetry --version | |
| - name: 📦 Cache Poetry virtualenv | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~\AppData\Local\pypoetry\Cache | |
| key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-poetry-${{ matrix.python-version }}- | |
| - name: 📦 Install dependencies with Poetry | |
| run: poetry install --with dev | |
| - name: 🔍 Lint with ruff | |
| run: poetry run ruff check . | |
| - name: 🧪 Run tests with coverage | |
| run: | | |
| $BRANCH = git rev-parse --abbrev-ref HEAD | |
| $COMMIT = git rev-parse HEAD | |
| poetry run pytest ` | |
| --cov=pytest_html_plus ` | |
| --cov-fail-under=39 ` | |
| --cov-report=term ` | |
| --reruns 1 ` | |
| --ignore=tests/browser ` | |
| --plus-profile=ci ` | |
| --git-branch "$BRANCH" ` | |
| --git-commit "$COMMIT" ` | |
| tests/ | |
| - name: 🧪 Run tests with warnings enabled | |
| run: | | |
| $BRANCH = git rev-parse --abbrev-ref HEAD | |
| $COMMIT = git rev-parse HEAD | |
| $env:PYTHONWARNINGS = "error" | |
| poetry run pytest ` | |
| --cov=pytest_html_plus ` | |
| --cov-fail-under=39 ` | |
| --cov-report=term ` | |
| --reruns 1 ` | |
| --ignore=tests/browser ` | |
| --plus-profile=ci-warnings ` | |
| --git-branch "$BRANCH" ` | |
| --git-commit "$COMMIT" ` | |
| tests/ | |
| - name: 📤 Upload HTML Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: report-windows-${{ github.job }}-${{ github.run_number }}-${{ matrix.python-version }} | |
| path: report_output/ | |
| - name: 📤 Upload HTML Warnings Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: report-warnings-windows-${{ github.job }}-${{ github.run_number }}-${{ matrix.python-version }} | |
| path: report_output_warnings/ |