1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-21 01:33:25 +02:00

(v2.1.1.9204) move python package to separate branch

This commit is contained in:
2025-03-15 16:02:57 +01:00
parent 7f1ae1f474
commit afb97ad38f
18 changed files with 38 additions and 1419 deletions

View File

@ -113,9 +113,6 @@ echo "${currentversion}" > .git/commit_version.tmp
# Generate GPT knowledge info for our Assistant (https://chatgpt.com/g/g-M4UNLwFi5-amr-for-r-assistant)
bash data-raw/_generate_GPT_knowledge_input.sh "${currentversion}"
cd data-raw
bash _generate_python_wrapper.sh
cd ..
git add data-raw/*
git add PythonPackage/*
git add -u

View File

@ -94,3 +94,15 @@ jobs:
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
- name: Show files
if: matrix.config.os == 'ubuntu-latest'
run: |
ls /home/runner/work/AMR/AMR/
ls /home/runner/work/AMR/AMR/check
ls /home/runner/work/AMR/AMR/check/**
ls /home/runner/work/AMR/AMR/check/**/tests*
ls /home/runner/work/AMR/AMR/check/**/tests*/testthat/
ls /home/runner/work/AMR/AMR/check/**/tests*/testthat/_snaps
shell: Rscript {0}
/home/runner/work/AMR/AMR/check/**/tests*/testthat/_snaps

View File

@ -73,3 +73,26 @@ jobs:
run: |
cd PythonPackage/AMR
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- name: Git push to python-wrapper branch
run: |
git config user.name "GitHub Actions"
git config user.email "<>"
# Create and switch to python-wrapper branch (orphan if it doesn't exist)
git fetch origin python-wrapper || true
git checkout python-wrapper || git checkout --orphan python-wrapper
# Delete all existing files from the working tree (safely)
git rm -rf . || true
rm -rf * || true
# Copy over only PythonPackage/AMR contents from main
git checkout main -- PythonPackage/AMR
mv PythonPackage/AMR/* .
rm -rf PythonPackage
# Commit and push if changes exist
git add .
git commit -m "Python wrapper update" || echo "No changes to commit"
git push origin python-wrapper --force