File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 56
56
uses : codecov/codecov-action@v1
57
57
with :
58
58
file : ${{ steps.coverage.outputs.report }}
59
+
60
+ testdata :
61
+ name : Collect regression test data
62
+ runs-on : ubuntu-latest
63
+ steps :
64
+ - uses : actions/checkout@master
65
+ - name : build rustpython
66
+ uses : actions-rs/cargo@v1
67
+ with :
68
+ command : build
69
+ args : --release --verbose --all
70
+ - name : collect tests data
71
+ run : cargo run --release tests/jsontests.py
72
+ env :
73
+ RUSTPYTHONPATH : ${{ github.workspace }}/Lib
74
+ - name : upload tests data to the website
75
+ env :
76
+ SSHKEY : ${{ secrets.ACTIONS_TESTS_DATA_DEPLOY_KEY }}
77
+ GITHUB_ACTOR : ${{ github.actor }}
78
+ run : |
79
+ echo "$SSHKEY" >~/github_key
80
+ chmod 600 ~/github_key
81
+ export GIT_SSH_COMMAND="ssh -i ~/github_key"
82
+
83
+ git clone git@github.com:RustPython/rustpython.github.io.git website
84
+ cd website
85
+ cp ../tests/cpython_tests_results.json ./_data/regrtests_results.json
86
+ git add ./_data/regrtests_results.json
87
+ git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR"
88
+ git push
You can’t perform that action at this time.
0 commit comments