diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff2930d..4af351c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,21 @@ on: - cron: 0 6 * * * # Daily 6AM UTC build +env: + COLOR: >- # Supposedly, pytest or coveragepy use this + yes + FORCE_COLOR: 1 # Request colored output from CLI tools supporting it + MYPY_FORCE_COLOR: 1 # MyPy's color enforcement + PIP_DISABLE_PIP_VERSION_CHECK: 1 + PIP_NO_PYTHON_VERSION_WARNING: 1 + PIP_NO_WARN_SCRIPT_LOCATION: 1 + PRE_COMMIT_COLOR: always + PROJECT_NAME: aiosignal + PY_COLORS: 1 # Recognized by the `py` package, dependency of `pytest` + PYTHONIOENCODING: utf-8 + PYTHONUTF8: 1 + + jobs: lint: name: Linter @@ -115,6 +130,12 @@ jobs: needs: test-summary # Run only on pushing a tag if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + permissions: + contents: write # IMPORTANT: mandatory for making GitHub Releases + id-token: write # IMPORTANT: mandatory for trusted publishing & sigstore + environment: + name: pypi + url: https://pypi.org/p/${{ env.PROJECT_NAME }} steps: - name: Checkout uses: actions/checkout@v4