|
1 | | -name: Test pip cache |
| 1 | +name: Setup Python Rate Limit Test |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - issue-851 |
7 | 4 | workflow_dispatch: |
8 | 5 |
|
9 | | -# jobs: |
10 | | -# build: |
11 | | -# runs-on: ${{ matrix.os }} |
12 | | -# strategy: |
13 | | -# fail-fast: false |
14 | | -# matrix: |
15 | | -# # os: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-13, macos-latest] |
16 | | -# os: [self-hosted] |
17 | | -# # os: [windows-2025, windows-latest, windows-2019, windows-11-arm] |
18 | | -# # python-version: ['3.13.1t', '3.13.1', '3.12', '3.11', '3.10'] |
19 | | -# steps: |
20 | | -# - name: Checkout |
21 | | -# uses: actions/checkout@v5 |
22 | | -# - name: Set up Python |
23 | | -# uses: actions/setup-python@v6 |
24 | | -# # uses: priyagupta108/setup-python@test-hashFiles |
25 | | -# with: |
26 | | -# python-version: '3.13' |
27 | | -# cache: 'pip' |
28 | | -# cache-dependency-path: '**/requirements.txt' |
29 | | -# - run: pip install -r requirements.txt |
30 | | -# - name: Verify Python Version |
31 | | -# run: | |
32 | | -# python --version |
33 | | - |
34 | | - |
35 | | -# name: Test Python 3.13.8t on Windows x64 |
36 | | - |
37 | | -# on: |
38 | | -# workflow_dispatch: |
39 | | - |
40 | 6 | jobs: |
41 | | - test-314-then-314t: |
42 | | - name: Setup 3.13.8 then 3.13.8t (reproduces issue) |
43 | | - runs-on: windows-11-arm |
| 7 | + hit-rate-limit: |
| 8 | + runs-on: ubuntu-latest |
44 | 9 | steps: |
45 | | - - name: Setup Python 3.13.8 |
46 | | - uses: actions/setup-python@v5 |
47 | | - with: |
48 | | - python-version: '3.13.7' |
49 | | - architecture: x64 |
50 | | - allow-prereleases: true |
51 | | - |
52 | | - - name: Verify 3.13.8 installation |
53 | | - shell: bash |
54 | | - run: | |
55 | | - echo "=== After installing 3.13.8 ===" |
56 | | - python --version |
57 | | - which python |
58 | | - |
59 | | - - name: Setup Python 3.13.8t (this should fail) |
60 | | - uses: actions/setup-python@v5 |
61 | | - with: |
62 | | - python-version: '3.13.7t' |
63 | | - architecture: x64 |
64 | | - allow-prereleases: true |
65 | | - |
66 | | - - name: Check what happened |
67 | | - shell: bash |
68 | | - run: | |
69 | | - echo "=== After attempting to install 3.14t ===" |
70 | | - python --version |
71 | | - which python |
| 10 | + - name: API Flood (Hit GitHub API rate limit) |
| 11 | + env: |
| 12 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 13 | + run: | |
| 14 | + for i in {1..2000}; do |
| 15 | + curl -s -H "Authorization: token $GH_TOKEN" https://api.github.com/user > /dev/null |
| 16 | + done |
| 17 | +
|
| 18 | + - name: Setup Python with GraalPy |
| 19 | + uses: actions/setup-python@v5 |
| 20 | + with: |
| 21 | + python-version: graalpy-24.1 |
72 | 22 |
|
| 23 | + - name: Show Python version |
| 24 | + run: python --version |
0 commit comments