File manager - Edit - /home/u478019808/domains/bestandroidphones.store/public_html/static/img/logo/workflows.zip
Back
PK J?�Z�Nb� � sca.ymlnu �[��� name: sca-scan on: pull_request: branches: [master, main, staging] workflow_dispatch: jobs: run-sca: uses: hostinger/sca-configs/.github/workflows/sca.yml@main secrets: inherit PK �A�Z��z� � codeql.ymlnu �[��� # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. # # ******** NOTE ******** # We have attempted to detect the languages in your repository. Please check # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # name: "CodeQL" permissions: contents: read on: push: branches: [ "master", "2.1.x" ] pull_request: branches: [ "master", "2.1.x" ] schedule: - cron: '39 1 * * 6' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'python' ] steps: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 with: languages: ${{ matrix.language }} # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 with: category: "/language:${{matrix.language}}" PK �A�Z>�d� � ci.ymlnu �[��� name: Continuous Integration on: workflow_call: pull_request: push: branches: - master permissions: contents: read jobs: lint: name: 🎨 Linters runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Type checking (Mypy) run: | mypy --strict charset_normalizer - name: Import sorting check (isort) run: | isort --check charset_normalizer - name: Code format (Black) run: | black --check --diff --target-version=py37 charset_normalizer - name: Style guide enforcement (Flake8) run: | flake8 charset_normalizer tests: name: ✅ Tests runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" - "3.13" steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: ${{ matrix.python-version }} allow-prereleases: true - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build --no-isolation python -m pip install ./dist/*.whl - name: Run tests run: | pytest - uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5 detection_coverage: needs: - tests name: 📈 Detection Coverage runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git - name: Coverage WITH preemptive run: | python ./bin/coverage.py --coverage 97 --with-preemptive - name: Coverage WITHOUT preemptive run: | python ./bin/coverage.py --coverage 95 # integration_test: # # needs: # - tests # # name: 🔗 Integration Tests # runs-on: ubuntu-latest # # steps: # - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 # - name: Set up Python # uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 # with: # python-version: '3.11' # - name: Install dependencies # run: | # pip install -U pip setuptools # pip install -r dev-requirements.txt # - name: Remove Chardet & Charset-Normalizer # run: | # pip uninstall -y chardet # pip uninstall -y charset-normalizer # - name: Install the package # run: | # python -m build # pip install ./dist/*.whl # - name: Clone the complete dataset # run: | # git clone https://github.com/Ousret/char-dataset.git # - name: Start the Flask server # run: | # python ./bin/serve.py & # - name: Integration Tests with Requests # run: | # python ./bin/integration.py chardet_bc: name: ⏪ Chardet Backward-Compatibility Test runs-on: ubuntu-latest steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git - name: BC Coverage run: | python ./bin/bc.py --coverage 80 mypyc_test: name: ⚡ MypyC Tests needs: - tests runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: python-version: - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" - "3.13" os: [ ubuntu-latest, macos-latest, windows-latest ] include: - python-version: "3.7" os: ubuntu-latest - python-version: "3.7" os: macos-13 - python-version: "3.7" os: windows-latest env: PYTHONIOENCODING: utf8 # only needed for Windows (console IO output encoding) steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: ${{ matrix.python-version }} allow-prereleases: true - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Install the package env: CHARSET_NORMALIZER_USE_MYPYC: '1' run: | python -m pip install . - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git - name: Coverage WITH preemptive run: | python ./bin/coverage.py --coverage 97 --with-preemptive - name: Performance (Normal) run: | python ./bin/performance.py performance: name: ⚡ Performance Test (no MypyC) runs-on: ubuntu-latest needs: - mypyc_test - chardet_bc steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install -U pip setuptools python -m pip install -r dev-requirements.txt python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git - name: Performance (Normal) run: | python ./bin/performance.py - name: Performance (Medium) run: | python ./bin/performance.py --size-increase 2 PK �A�Z��� cd.ymlnu �[��� name: Continuous Delivery on: workflow_dispatch: release: types: - created permissions: contents: read jobs: pre_flight_check: name: Preflight Checks uses: ./.github/workflows/ci.yml universal-wheel: name: Build Universal Wheel runs-on: ubuntu-latest needs: - pre_flight_check steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: '3.11' - name: Update pip, setuptools, wheel, build and twine run: | python -m pip install --upgrade pip python -m pip install setuptools wheel build - name: Build Wheel env: CHARSET_NORMALIZER_USE_MYPYC: '0' run: python -m build - name: Upload artifacts uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce with: name: dist path: dist build-wheels: name: Build wheels on ${{ matrix.os }} ${{ matrix.qemu }} runs-on: ${{ matrix.os }} needs: pre_flight_check strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-13 ] qemu: [ '' ] include: # Split ubuntu job for the sake of speed-up - os: ubuntu-latest qemu: aarch64 - os: ubuntu-latest qemu: ppc64le - os: ubuntu-latest qemu: s390x steps: - name: Checkout uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: submodules: true - name: Set up QEMU if: ${{ matrix.qemu }} uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 with: platforms: all id: qemu - name: Prepare emulation run: | if [[ -n "${{ matrix.qemu }}" ]]; then # Build emulated architectures only if QEMU is set, # use default "auto" otherwise echo "CIBW_ARCHS_LINUX=${{ matrix.qemu }}" >> $GITHUB_ENV fi shell: bash - name: Setup Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 - name: Update pip, wheel, setuptools, build, twine run: | python -m pip install -U pip wheel setuptools build twine - name: Build wheels uses: pypa/cibuildwheel@f1859528322d7b29d4493ee241a167807661dfb4 # v2.21.2 env: CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation" CIBW_ARCHS_MACOS: x86_64 arm64 universal2 CIBW_ENVIRONMENT: CHARSET_NORMALIZER_USE_MYPYC='1' CIBW_BEFORE_BUILD: pip install -r build-requirements.txt CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest -c {package} {package}/tests CIBW_SKIP: pp* cp36* - name: Upload artifacts uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce with: name: dist path: ./wheelhouse/*.whl checksum: name: Compute hashes runs-on: ubuntu-latest needs: - build-wheels - universal-wheel outputs: hashes: ${{ steps.compute.outputs.hashes }} steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Download distributions uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: name: dist path: dist - name: Collected dists run: | tree dist - name: Generate hashes id: compute # needs.checksum.outputs.hashes working-directory: ./dist run: echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT provenance: needs: checksum uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0 permissions: actions: read id-token: write contents: write with: base64-subjects: ${{ needs.checksum.outputs.hashes }} upload-assets: true compile-generator: true deploy: name: 🚀 Deploy to PyPi runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') permissions: id-token: write contents: write needs: provenance environment: name: pypi url: https://pypi.org/project/charset-normalizer/ steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Download distributions uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: name: dist path: dist - name: Collected dists run: | tree dist - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # release/v1 - name: Upload dists to GitHub Release env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" run: | gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }} PK �A�ZpsOQ Q scorecards.ymlnu �[��� # This workflow uses actions that are not certified by GitHub. They are provided # by a third-party and are governed by separate terms of service, privacy # policy, and support documentation. name: Scorecard supply-chain security on: # For Branch-Protection check. Only the default branch is supported. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection branch_protection_rule: # To guarantee Maintained check is occasionally updated. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained schedule: - cron: '20 7 * * 2' push: branches: ["master"] # Declare default permissions as read only. permissions: read-all jobs: analysis: name: Scorecard analysis runs-on: ubuntu-latest permissions: # Needed to upload the results to code-scanning dashboard. security-events: write # Needed to publish results and get a badge (see publish_results below). id-token: write contents: read actions: read steps: - name: "Checkout code" uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: persist-credentials: false - name: "Run analysis" uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 with: results_file: results.sarif results_format: sarif # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: # - you want to enable the Branch-Protection check on a *public* repository, or # - you are installing Scorecards on a *private* repository # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. # repo_token: ${{ secrets.SCORECARD_TOKEN }} # Public repositories: # - Publish results to OpenSSF REST API for easy access by consumers # - Allows the repository to include the Scorecard badge. # - See https://github.com/ossf/scorecard-action#publishing-results. # For private repositories: # - `publish_results` will always be set to `false`, regardless # of the value entered here. publish_results: true # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: SARIF file path: results.sarif retention-days: 5 # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 with: sarif_file: results.sarif PK J?�Z�Nb� � sca.ymlnu �[��� PK �A�Z��z� � � codeql.ymlnu �[��� PK �A�Z>�d� � � ci.ymlnu �[��� PK �A�Z��� �&