Skip to content

Commit 1bce878

Browse files
committed
Revert changed workflow files
1 parent 0fd4b98 commit 1bce878

File tree

6 files changed

+152
-2
lines changed

6 files changed

+152
-2
lines changed

.github/workflows/build_wheels.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Trigger wheel build
2+
3+
on:
4+
push:
5+
branches: [main, master, 'release*']
6+
tags: ['*']
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build-wheels:
13+
if: github.repository == 'python/mypy'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
- name: Trigger script
23+
env:
24+
WHEELS_PUSH_TOKEN: ${{ secrets.WHEELS_PUSH_TOKEN }}
25+
run: ./misc/trigger_wheel_build.sh

.github/workflows/docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Check documentation build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main, master, 'release*']
7+
tags: ['*']
8+
pull_request:
9+
paths:
10+
- 'docs/**'
11+
# We now have a docs check that fails if any error codes don't have documentation,
12+
# so it's important to do the docs build on all PRs touching mypy/errorcodes.py
13+
# in case somebody's adding a new error code without any docs
14+
- 'mypy/errorcodes.py'
15+
- 'mypyc/doc/**'
16+
- '**/*.rst'
17+
- '**/*.md'
18+
- CREDITS
19+
- LICENSE
20+
21+
permissions:
22+
contents: read
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
docs:
30+
runs-on: ubuntu-latest
31+
timeout-minutes: 10
32+
env:
33+
TOXENV: docs
34+
TOX_SKIP_MISSING_INTERPRETERS: False
35+
VERIFY_MYPY_ERROR_CODES: 1
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
persist-credentials: false
40+
- uses: actions/setup-python@v5
41+
with:
42+
python-version: '3.12'
43+
- name: Install tox
44+
run: pip install tox==4.26.0
45+
- name: Setup tox environment
46+
run: tox run -e ${{ env.TOXENV }} --notest
47+
- name: Test
48+
run: tox run -e ${{ env.TOXENV }} --skip-pkg-install
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Sync typeshed
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 1,15 * *"
7+
8+
permissions: {}
9+
10+
jobs:
11+
sync_typeshed:
12+
name: Sync typeshed
13+
if: github.repository == 'python/mypy'
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
timeout-minutes: 10
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
persist-credentials: true # needed to `git push` the PR branch
24+
# TODO: use whatever solution ends up working for
25+
# https://github.com/python/typeshed/issues/8434
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.10"
29+
- name: git config
30+
run: |
31+
git config --global user.name mypybot
32+
git config --global user.email '<>'
33+
- name: Sync typeshed
34+
run: |
35+
python -m pip install requests==2.28.1
36+
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python misc/sync-typeshed.py --make-pr

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main, master, 'release*', color-output-option]
6+
branches: [main, master, 'release*']
77
tags: ['*']
88
pull_request:
99
paths-ignore:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test stubgenc on pybind11_fixtures
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main, master, 'release*']
7+
tags: ['*']
8+
pull_request:
9+
paths:
10+
- 'misc/test-stubgenc.sh'
11+
- 'mypy/stubgenc.py'
12+
- 'mypy/stubdoc.py'
13+
- 'mypy/stubutil.py'
14+
- 'test-data/stubgen/**'
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
stubgenc:
25+
# Check stub file generation for a small pybind11 project
26+
# (full text match is required to pass)
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 10
29+
steps:
30+
31+
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
34+
35+
- name: Setup 🐍 3.9
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: 3.9
39+
40+
- name: Test stubgenc
41+
run: misc/test-stubgenc.sh

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ deps =
2626
-r test-requirements.txt
2727
# This is a bit of a hack, but ensures the faster-cache path is tested in CI
2828
orjson;python_version=='3.12'
29-
commands = python -m pytest {posargs} -k daemon
29+
commands = python -m pytest {posargs}
3030

3131
[testenv:dev]
3232
description = generate a DEV environment, that has all project libraries

0 commit comments

Comments
 (0)