Bump @mdn/browser-compat-data from 6.0.28 to 6.1.5 #12
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: Deployer testing | |
| on: | |
| pull_request: | |
| paths: | |
| - deployer/** | |
| - .github/workflows/pr-deployer.yml | |
| # No GITHUB_TOKEN permissions, as we don't use it. | |
| permissions: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Python | |
| id: setup-python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: deployer/.venv | |
| key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }} | |
| - name: Load cached .local | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.local | |
| key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }} | |
| - name: Install Python poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| - name: Install deployer | |
| run: | | |
| cd deployer | |
| poetry install --with dev | |
| if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
| - name: Lint Python code | |
| run: | | |
| source deployer/.venv/bin/activate | |
| flake8 deployer/src | |
| black --check deployer/src | |
| - name: Basic run of deployer | |
| run: | | |
| cd deployer | |
| poetry run deployer --help | |
| - name: Run deployer unit tests | |
| run: | | |
| cd deployer | |
| poetry run pytest |