Skip to content

Commit 76a4814

Browse files
committed
Setup deployment
1 parent 29d792e commit 76a4814

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ on:
1414
- cron: 0 6 * * * # Daily 6AM UTC build
1515

1616

17+
env:
18+
COLOR: >- # Supposedly, pytest or coveragepy use this
19+
yes
20+
FORCE_COLOR: 1 # Request colored output from CLI tools supporting it
21+
MYPY_FORCE_COLOR: 1 # MyPy's color enforcement
22+
PIP_DISABLE_PIP_VERSION_CHECK: 1
23+
PIP_NO_PYTHON_VERSION_WARNING: 1
24+
PIP_NO_WARN_SCRIPT_LOCATION: 1
25+
PRE_COMMIT_COLOR: always
26+
PROJECT_NAME: aiosignal
27+
PY_COLORS: 1 # Recognized by the `py` package, dependency of `pytest`
28+
PYTHONIOENCODING: utf-8
29+
PYTHONUTF8: 1
30+
31+
1732
jobs:
1833
lint:
1934
name: Linter
@@ -115,6 +130,12 @@ jobs:
115130
needs: test-summary
116131
# Run only on pushing a tag
117132
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
133+
permissions:
134+
contents: write # IMPORTANT: mandatory for making GitHub Releases
135+
id-token: write # IMPORTANT: mandatory for trusted publishing & sigstore
136+
environment:
137+
name: pypi
138+
url: https://pypi.org/p/${{ env.PROJECT_NAME }}
118139
steps:
119140
- name: Checkout
120141
uses: actions/checkout@v4

0 commit comments

Comments
 (0)