feat: add headers argument and a custom user-agents for http requests… #332
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: "Run CI" | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: | |
| - "**" | |
| - "!gh-pages" | |
| env: | |
| # disable keyring (https://github.com/actions/runner-images/issues/6185): | |
| PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring | |
| jobs: | |
| code-checks: | |
| if: ${{ github.event_name == 'push' || (github.event.pull_request.head.repo.full_name != 'DS4SD/docling-core' && github.event.pull_request.head.repo.full_name != 'ds4sd/docling-core') }} | |
| uses: ./.github/workflows/checks.yml | |
| # To enable when we add the ./docs | |
| # build-docs: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # - uses: ./.github/actions/setup-poetry | |
| # - name: Build docs | |
| # run: poetry run mkdocs build --verbose --clean | |