Skip to content

Commit e9fbb2a

Browse files
committed
update
1 parent 651e28f commit e9fbb2a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/run-toxgen.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Generate tox
2+
3+
on:
4+
schedule:
5+
- cron: '59 11 * * 2'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
generate:
12+
name: Generate tox and CI YAMLs
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
16+
steps:
17+
- uses: actions/[email protected]
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.13
21+
22+
- name: Set up git
23+
run: |
24+
git config user.name "sentry-toxgen-bot"
25+
git config user.email "[email protected]"
26+
27+
- name: Checkout branch
28+
run: |
29+
git checkout -b toxgen/generate-tox-and-ci-yamls
30+
31+
- name: Run generate-test-files
32+
run: |
33+
sh scripts/generate-test-files.sh
34+
35+
- name: Commit and open PR
36+
run: |
37+
git add --all
38+
git commit -m 'Regenerate tox.ini and CI config'
39+
git push -u origin toxgen/generate-tox-and-ci-yamls
40+
41+
- name: Open PR
42+
run: |
43+
gh pr create -B master -H toxgen/generate-tox-and-ci-yamls --title 'tests: Update tox.ini' --body $'This PR was created automatically in order to make sure we are testing the latest versions of integrated frameworks and libraries.\n\nShort rundown of how this works:\n - We query PyPI for all supported releases of each framework and pick a handful to test.\n - We generate a new `tox.ini` from a template, filling in the new versions we've picked.\n - We regenerate the CI YAML files responsible for running integration tests.\n\nSee `scripts/populate_tox/README.md` for more info.'

0 commit comments

Comments
 (0)