forked from hirokawa/cssrlib-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hirokawa#36 from hirokawa/devel
Devel
- Loading branch information
Showing
27 changed files
with
126,846 additions
and
1,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Execute Python Scripts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- devel | ||
|
||
jobs: | ||
execute-scripts: | ||
name: Execute Python Scripts | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout cssrlib-data repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies from cssrlib-data repository | ||
run: pip install -r requirements.txt | ||
|
||
- name: Get branch name | ||
id: get_branch_name | ||
run: echo "branch_name=$(basename $GITHUB_REF)" >> $GITHUB_OUTPUT | ||
|
||
- name: Clone cssrlib repository | ||
run: git clone -b ${{ steps.get_branch_name.outputs.branch_name }} https://github.com/${{ github.actor }}/cssrlib.git | ||
|
||
- name: Install dependencies from cssrlib repository | ||
run: | | ||
cd cssrlib | ||
pip install -r requirements.txt | ||
- name: Execute Python scripts | ||
run: | | ||
export PYTHONPATH="../cssrlib/src:$PYTHONPATH" | ||
cd ./samples | ||
for file in $(find . -name "*.py"); do | ||
echo "# Execute $file" | ||
echo "#" | ||
python "$file" > /dev/null | ||
echo "# ...done!" | ||
echo "#" | ||
echo | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.