Skip to content

Commit dd91a27

Browse files
committed
add a github workflow to save whats left to the website repo
1 parent 53da086 commit dd91a27

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/cron-ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,37 @@ jobs:
8686
git add ./_data/regrtests_results.json
8787
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR"
8888
git push
89+
90+
whatsleft:
91+
name: Collect what is left data
92+
runs-on: ubuntu-latest
93+
steps:
94+
- uses: actions/checkout@master
95+
- name: build rustpython
96+
uses: actions-rs/cargo@v1
97+
with:
98+
command: build
99+
args: --release --verbose
100+
- name: collect what is left data
101+
run: |
102+
chmod +x ./whats_left.sh
103+
./whats_left.sh > whats_left.temp
104+
env:
105+
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
106+
- name: upload data to the website
107+
env:
108+
SSHKEY: ${{ secrets.ACTIONS_TESTS_DATA_DEPLOY_KEY }}
109+
GITHUB_ACTOR: ${{ github.actor }}
110+
run: |
111+
echo "$SSHKEY" >~/github_key
112+
chmod 600 ~/github_key
113+
export GIT_SSH_COMMAND="ssh -i ~/github_key"
114+
115+
git clone git@github.com:RustPython/rustpython.github.io.git website
116+
cd website
117+
[ -f ./_data/whats_left.temp ] && cp ./_data/whats_left.temp ./_data/whats_left_lastrun.temp
118+
cp ../whats_left.temp ./_data/whats_left.temp
119+
git add ./_data/whats_left_lastrun.temp
120+
git add ./_data/whats_left.temp
121+
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR"
122+
git push

0 commit comments

Comments
 (0)