Compare commits

...

6 Commits

Author SHA1 Message Date
cad428c328 Update CI
Some checks failed
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 15m44s
Build Packages / Generate python client (push) Successful in 50s
Build Packages / Build documentation (push) Successful in 1m30s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 9m4s
Build Packages / build:rpm (rocky9) (push) Successful in 10m12s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 8m2s
Build Packages / Unit tests (push) Successful in 1h6m34s
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 5s
Build Packages / build:rpm (rocky8) (push) Successful in 13m56s
2025-09-19 10:09:53 +02:00
7a179005a9 One more try with the upload pipeline
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 0s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 0s
Build Packages / build:rpm (rocky8) (push) Failing after 1s
Build Packages / build:rpm (rocky9) (push) Failing after 1s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 1s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 1s
Build Packages / Build documentation (push) Successful in 1m19s
Build Packages / Unit tests (push) Successful in 50m23s
Build Packages / Generate python client (push) Failing after 31s
2025-09-18 22:09:43 +02:00
eb40e352fb Fixes to python client upload part
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 0s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 0s
Build Packages / build:rpm (rocky8) (push) Failing after 1s
Build Packages / build:rpm (rocky9) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 0s
Build Packages / Build documentation (push) Successful in 1m21s
Build Packages / Unit tests (push) Successful in 52m11s
Build Packages / Generate python client (push) Failing after 56s
2025-09-18 20:14:18 +02:00
d19954bb4c Fixes to python client upload part
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 0s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 0s
Build Packages / build:rpm (rocky8) (push) Failing after 1s
Build Packages / build:rpm (rocky9) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 0s
Build Packages / Generate python client (push) Failing after 27s
Build Packages / Build documentation (push) Successful in 1m17s
Build Packages / Unit tests (push) Successful in 54m20s
2025-09-18 19:52:06 +02:00
662ccd1fc3 Fixes to tag upload part
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 0s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 0s
Build Packages / build:rpm (rocky8) (push) Failing after 0s
Build Packages / build:rpm (rocky9) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 0s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 1s
Build Packages / Build documentation (push) Successful in 1m18s
Build Packages / Generate python client (push) Failing after 19s
Build Packages / Unit tests (push) Successful in 57m52s
2025-09-18 19:45:02 +02:00
eb429cf014 Test documentation upload
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m56s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 10m58s
Build Packages / build:rpm (rocky8) (push) Successful in 10m37s
Build Packages / Generate python client (push) Successful in 32s
Build Packages / GPU test (push) Successful in 11s
Build Packages / Build documentation (push) Failing after 56s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m37s
Build Packages / build:rpm (rocky9) (push) Successful in 11m16s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m39s
Build Packages / Unit tests (push) Has been cancelled
2025-09-18 19:16:06 +02:00
3 changed files with 31 additions and 13 deletions

View File

@@ -52,6 +52,10 @@ jobs:
else
echo "No packages found to move"
fi
- name: Upload documentation
if: github.ref_type == 'tag'
shell: bash
run: pwd
python-client:
name: Generate python client
runs-on: jfjoch_rocky8
@@ -60,6 +64,14 @@ jobs:
- name: Build python client
shell: bash
run: bash gen_python_client.sh
- name: Upload Package to Gitea PyPI
if: github.ref_type == 'tag'
env:
TWINE_USERNAME: "__token__" # Username for Twine when using token-based auth
TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} # Use the secret for authentication
run: |
cd python-client
twine upload --repository-url https://gitea.psi.ch/api/packages/mx/pypi dist/*
documentation:
name: Build documentation
runs-on: jfjoch_rocky8
@@ -68,20 +80,24 @@ jobs:
- name: Build documentation
shell: bash
run: bash make_doc.sh
- name: Tag-only step
- name: Upload documentation
if: github.ref_type == 'tag'
shell: bash
run: echo "This runs only when the workflow is triggered by a tag"
gpu-test:
name: GPU test
runs-on: jfjoch_rocky8
container:
image: gitea.psi.ch/leonarski_f/jfjoch_rocky8:2509
options: --gpus all
steps:
- name: List GPUs
shell: bash
run: nvidia-smi
run: |
git config --global user.email "filip.leonarski@psi.ch"
git config --global user.name "Filip Leonarski (Gitea)"
git checkout --orphan gitea-pages
git reset --hard
# Remove everything except .git and public
git clean -fdx -e public -e .git
# Move public contents to root and remove the now-empty public dir
shopt -s dotglob nullglob
mv public/* .
rm -rf public
git add .
git commit -m "Deploy site"
git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
unit-tests:
name: Unit tests
runs-on: jfjoch_rocky8

View File

@@ -8,6 +8,8 @@ ARG EIGEN_TAG=3.4.0
# Update base and install common utilities
RUN dnf -y update && \
dnf -y install epel-release && \
dnf -y update && \
dnf -y install --enablerepo=devel \
dnf-plugins-core \
epel-release \
@@ -58,6 +60,7 @@ RUN dnf -y update && \
python3-pip \
python3-setuptools \
python3-wheel \
twine \
freetype-devel && \
dnf clean all && rm -rf /var/cache/dnf

View File

@@ -8,4 +8,3 @@ java -jar openapi-generator-cli.jar generate -i broker/jfjoch_api.yaml -o python
cd python-client
sed -i s/"NAME = \"jfjoch-client\""/"NAME = \"jfjoch_client\""/ setup.py
python3 setup.py sdist bdist_wheel
mv dist/* ..