Add Markdown text escaping #352
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: CI | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| workflow_call: | |
| push: | |
| branches: | |
| - main | |
| - "renovate/**" | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-slim | |
| env: | |
| # Run property-based tests with more examples in CI than locally. | |
| HYPOTHESIS_PROFILE: ci | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 | |
| - run: uv sync --dev | |
| - run: uv run ruff check --output-format=github . | |
| - run: uv run ruff format --check | |
| - run: uv run mypy draftjs_exporter tests | |
| - run: uv run ty check --output-format=github . | |
| - run: just benchmark 10 | |
| - run: just build | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".node-version" | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: just test-coverage | |
| - run: just docs-build | |
| - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: site | |
| test_compatibility: | |
| needs: test | |
| runs-on: ubuntu-slim | |
| env: | |
| HYPOTHESIS_PROFILE: ci | |
| strategy: | |
| matrix: | |
| python-version: | |
| # Skip oldest supported version, checked in the "test_lower_bound" job. | |
| # - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| # Skip latest version, tested in the main "test" job. | |
| # - "3.14" | |
| # Skip future version, tested in the "test_experimental" job. | |
| # - "3.15" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 | |
| - run: uv sync --dev | |
| - run: just test | |
| test_lower_bound: | |
| needs: test | |
| runs-on: ubuntu-slim | |
| env: | |
| HYPOTHESIS_PROFILE: ci | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.10" | |
| - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 | |
| - run: just test-compatibility | |
| test_experimental: | |
| # Ad-hoc job to test experimental support without having to adjust all of our project for compatibility. | |
| needs: test | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| # See available versions: | |
| # https://github.com/actions/python-versions/tags | |
| python-version: "3.15-dev" | |
| - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| - run: uv run --no-group dev --with 'beautifulsoup4>=4.4.1,<5, html5lib==1.1' python -X dev example.py | |
| deploy_site: | |
| needs: test | |
| runs-on: ubuntu-slim | |
| permissions: | |
| pages: write # to deploy to Pages | |
| id-token: write # to verify the deployment originates from an appropriate sourceq | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 | |
| id: deployment |