Avasam and GitHub
7050c1d907
Add support for Homebrew and Chocolatey ( #9187 )
2022-11-24 07:17:17 +00:00
72d1597de2
stubtest_third_party.py: Allow running non-listed platforms locally ( #9173 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-15 01:39:57 +00:00
Avasam and GitHub
cfed3e1113
Cache pip downloads in CI ( #9192 )
2022-11-15 00:57:20 +00:00
Nikita Sobolev and GitHub
66edd05cf3
Cancel old daily CI jobs on PRs ( #9196 )
2022-11-14 15:47:53 +00:00
9f80dbd3db
Do not run stubtest_third_party on requirements change ( #9160 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-11 18:16:00 +00:00
Nikita Sobolev and GitHub
dbac458bd5
Fix CI failure when no third-party stubs were updated ( #9159 )
2022-11-11 07:09:35 -08:00
9cd9f6f6e0
Add the ability to run third-party stubtest on Windows or MacOS when needed ( #8923 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-11-11 13:40:50 +00:00
Nikita Sobolev and GitHub
7b3fff714a
Do not run create-issue-on-failure on PRs ( #9140 )
2022-11-09 15:02:50 +00:00
Nikita Sobolev and GitHub
cb5ed3c5fb
Run stubtest on all third party stubs if requirements.txt is changed ( #9132 )
2022-11-09 14:30:56 +00:00
86f9d93003
Update pyright to 1.1.278 ( #9077 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-03 15:32:10 +00:00
Alex Waygood and GitHub
401a7b929e
Bump various test dependencies; pin Python to <3.10 in CI to workaround pytype incompatibility ( #9068 )
2022-11-02 18:44:48 +00:00
Sebastian Rittau and GitHub
96daaf60bf
Remove references to master branch ( #9060 )
2022-11-01 13:02:38 +01:00
Sebastian Rittau and GitHub
3aaf6b9999
'master' branch was updated to 'main' ( #9045 )
2022-11-01 12:57:57 +01:00
Nikita Sobolev and GitHub
fd75bc21fc
Use 3.11 instead of 3.11-dev ( #8983 )
2022-10-26 15:52:24 +02:00
Alex Waygood and GitHub
122bceeade
CI: Use macOS-11 for stdlib stubtest ( #8949 )
2022-10-20 15:45:18 +02:00
Nikita Sobolev and GitHub
fe3a34503c
Cancel old mypy_primer builds ( #8873 )
2022-10-10 01:28:17 -07:00
Shantanu and GitHub
ae1cca13c1
stubsabot: try and fix change detection logic ( #8851 )
2022-10-05 09:53:57 -07:00
Alex Waygood and GitHub
5cb7ef1f73
stubsabot: use an ssh-key when checking out typeshed ( #8844 )
...
Fixes #8434 .
This uses a new ssh key that @JelleZijlstra just set up for our repo ([this option](https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-using-ssh-deploy-keys ) in Peter Evans's guide to getting checks to run on automated PRs. It seems to be a good option in terms of both security and usability. It's also the option used by `oddbird/MetaDeploy` [here](https://github.com/oddbird/MetaDeploy/blob/main/.github/workflows/upgrade-deps.yml#L20 ), and they seem pretty happy about it (they wrote a nice blog post about their automated PRs for uprading dependencies [here](https://www.oddbird.net/2022/06/01/dependabot-single-pull-request/ ).)
2022-10-04 14:13:18 -07:00
Alex Waygood and GitHub
08a3359e94
Run stubsabot daily, not weekly ( #8845 )
...
I think stubsabot has been a really big success. Let's change it to a daily workflow, so that we don't get an avalanche of PRs every Friday, and so that we can see more quickly if a PR changing stubsabot has accidentally broken the script. (If that _does_ happen, it should be pretty easy to just revert the commit that accidentally broke stubsabot, and go back to a version that works pretty well.)
2022-10-04 14:12:50 -07:00
Alex Waygood and GitHub
5da171ba45
mypy_test.py: Always add dependencies of stubs to the files to test (#8800 )
2022-10-04 08:05:13 -07:00
Shantanu and GitHub
d7a701372d
Run stub_uploader tests in CI ( #8794 )
2022-09-30 10:07:34 -07:00
Akuli and GitHub
ba7f9b3715
Fix installing dependencies for 3rd party stubtest ( #8807 )
2022-09-29 10:52:11 +02:00
Alex Waygood and GitHub
d84fda1f12
Upgrade pyright to 1.1.273 ( #8802 )
2022-09-28 14:01:08 +01:00
Alex Waygood and GitHub
3e71efbc73
Improve the daily.yml workflow ( #8737 )
2022-09-14 21:46:18 -07:00
Akuli and GitHub
ab022557e2
Run third-party stubtest under xvfb-run ( #8719 )
2022-09-10 18:34:11 +03:00
b53843ab46
Add infrastructure allowing for test cases for third-party stubs ( #8700 )
...
- Move the logic for running mypy on the test cases from `tests/mypy_test.py` to a separate script, `tests/regr_test.py`.
- Add the necessary logic in order to be able to have test cases for third-party stubs.
- Move logic common to `tests/mypy_test.py` and `tests/regr_test.py` into `tests/colors.py`, and rename `tests/colors.py` to `tests/utils.py`.
- Add a new check to `tests/check_consistent.py`, to enforce the use of `# pyright: reportUnnecessaryTypeIgnoreComment=true` comments in third-party test cases. These are essential if we want to have our tests against false-negatives work with pyright.
- Update the relevant documentation to account for the new test file.
- Add a new job to the `tests.yml` GitHub workflow, to run the new test in CI.
- Add a simple proof-of-concept test case for `requests`, as a regression test for #7998 .
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-09-08 16:51:33 +01:00
Alex Waygood and GitHub
fd4feba2c9
Enable pyright's reportUnnecessaryTypeIgnoreComment setting for the whole test_cases directory ( #8683 )
2022-09-05 15:20:04 +02:00
Alex Waygood and GitHub
54c562827b
Cancel old test jobs in CI ( #8679 )
2022-09-03 13:04:54 -07:00
Alex Waygood and GitHub
1b6cda86d4
Alphabetise items in requirements-tests.txt ( #8635 )
2022-08-28 07:59:17 -07:00
Shantanu and GitHub
c91dfdeb2b
Fix stubsabot action ( #8618 )
...
Broken by #8605 and the issue creation code was always broken
2022-08-25 17:28:59 -07:00
Alex Waygood and GitHub
15f74295d2
Add aiohttp and tomlkit to requirements-tests.txt ( #8605 )
2022-08-24 23:08:54 +01:00
Alex Waygood and GitHub
875f0ca7fc
mypy_test.py: Move type-checking of our tests and scripts into a different test (#8587 )
2022-08-22 17:16:03 +01:00
Jelle Zijlstra and GitHub
5477097c6d
Upgrade pyright ( #8541 )
2022-08-12 20:24:51 -07:00
Alex Waygood and GitHub
1ec57121e3
Unpin stubtest from 3.10.5 ( #8523 )
2022-08-12 10:01:26 +02:00
Alex Waygood and GitHub
c68bcc7e69
Temporarily pin stubtest to 3.10.5 ( #8511 )
2022-08-09 13:55:00 +02:00
Alex Waygood and GitHub
eca5549ee1
CI: Use macos-latest for stubtest ( #8353 )
2022-07-21 16:52:41 +02:00
Shantanu and GitHub
936314b979
Add stubsabot Github Action ( #8303 )
2022-07-17 13:21:51 -07:00
Shantanu and GitHub
5ef20e8021
Use packaging to parse versions ( #8314 )
...
packaging is the standard tool for dealing with versions and
requirements. This allows us to easily support all PEP 508 specs.
packaging also has good error messages, so I don't create our own here.
This lets us get rid of our handrolled half parser and sanity checks.
I kept the whitespace consistency check, since that's just a formatting
lint and isn't testing the correctness of parsing (which we now
definitely do correctly).
2022-07-17 12:35:32 -07:00
Alex Waygood and GitHub
78d96cd17e
Drop support for Python 2 ( #8272 )
2022-07-12 09:08:56 +02:00
Sebastian Rittau and GitHub
9a5c865034
Drop support for Python 3.6, part 1 ( #8250 )
...
* Document that typeshed support 3.7+.
* Don't run tests on Python 3.6.
* Remove Python 3.6 allow lists.
* Merge common allowlist items.
Part of #6189
2022-07-07 14:42:02 +02:00
Jon Dufresne and GitHub
0570cd9f9c
Update GitHub actions to their latest versions ( #8160 )
...
The actions/setup-python now always requires a version specified.
2022-06-26 11:36:15 +02:00
Alex Waygood and GitHub
bae4fd2209
Upgrade pyright ( #8110 )
2022-06-20 17:07:43 +01:00
Alex Waygood and GitHub
6b0c8df9ec
Upgrade pyright, improve pyright config files ( #8072 )
2022-06-16 18:50:50 +01:00
bf68214245
mypy_primer: report lines truncated ( #7993 )
...
Co-authored-by: hauntsaninja <>
2022-05-30 17:04:34 -07:00
Alex Waygood and GitHub
ac9efd8573
stubtest_stdlib: run on PRs updating requirements-tests.txt (#7949 )
2022-05-25 15:29:05 +02:00
Sebastian Rittau and GitHub
a412ddb437
Update pyright ( #7914 )
...
Required for #7865
2022-05-21 19:15:06 +01:00
Alex Waygood and GitHub
aa70cc8abb
CI: Don't install tomli for stubtest_stdlib ( #7901 )
...
The script doesn't import tomli
2022-05-20 19:33:06 -07:00
Alex Waygood and GitHub
d54d018e2d
CI: Fix stubtest workflow; make paths for other workflows more specific ( #7897 )
2022-05-20 16:37:02 +01:00
Alex Waygood and GitHub
e2cf6c21d5
CI: Don't run stubtest_stdlib on PRs that don't touch the stdlib ( #7895 )
...
* Don't run stubtest_stdlib on PRs that don't touch the stdlib
2022-05-20 15:56:29 +01:00
Sebastian Rittau and GitHub
adf48f1f96
Only run CI on pushes to main/master and pull requests ( #7883 )
...
Currently, when a maintainer opens a pull request from a branch in the
typeshed repository (instead of a fork), CI is run twice: once for the
PR and once for the push. This not only wastes CI minutes (and it seems
we're running into some limits lately), but also makes CI output twice
as large and more difficult to process.
The disadvantage is that a PR needs to be opened to run CI.
Alternatively, CI can be triggered manually.
2022-05-20 14:14:25 +02:00