-
Notifications
You must be signed in to change notification settings - Fork 23
53 lines (47 loc) · 1.52 KB
/
update_stubs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Check out repos in this structure
# micropython-stubs
# +-- stubs
# +-- repos
# +-- micropython
# -- micropython-lib
# repro structure needed to allow automatic PR creation to work
########################################################################################################################################
name: update_stubs
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *" # Run every day at 01:00
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
jobs:
########################################################################################################################################
build-stubs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout stubs repo
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.3.1
- run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config --list
- run: |
pip install wheel
pip install -U micropython-stubber
- run: |
echo Running in folder $(pwd)
stubber --version
stubber clone --no-stubs
- name: Run update-stubs.ps1
run: |
pwsh -File update-stubs.ps1
- name: update all_modules.json
run: |
echo "Updating all_modules.json"
# pip install tomli
python3 update_all_modules.py
- name: commit
uses: ./.github/actions/commit
with:
message: "update stubs"