Compare commits

...

4 Commits

Author SHA1 Message Date
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
6cd2ad4f9e Run CI on tags
Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 9m8s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 10m2s
Build Packages / GPU test (push) Successful in 5s
Build Packages / Build documentation (push) Successful in 50s
Build Packages / build:rpm (rocky8) (push) Successful in 9m52s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 10m5s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m30s
Build Packages / build:rpm (rocky9) (push) Successful in 10m56s
Build Packages / Unit tests (push) Successful in 1h9m27s
Build Packages / Generate python client (push) Failing after 20s
2025-09-18 18:39:41 +02:00
e046384d78 tag
Some checks failed
Build Packages / Generate python client (push) Successful in 49s
Build Packages / GPU test (push) Successful in 7s
Build Packages / Build documentation (push) Successful in 1m32s
Build Packages / build:rpm (rocky8_sls9) (push) Has been cancelled
Build Packages / build:rpm (rocky8) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2204) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2404) (push) Has been cancelled
Build Packages / Unit tests (push) Has been cancelled
Build Packages / build:rpm (rocky8_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky9) (push) Has been cancelled
2025-09-18 18:34:07 +02:00

View File

@@ -4,6 +4,8 @@ on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
workflow_dispatch:
@@ -50,6 +52,11 @@ jobs:
else
echo "No packages found to move"
fi
- name: Upload documentation
if: github.ref_type == 'tag'
shell: bash
run: |
python-client:
name: Generate python client
runs-on: jfjoch_rocky8
@@ -58,6 +65,15 @@ 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: |
source venv/bin/activate
pip3 install twine
twine upload --repository-url https://gitea.psi.ch/api/packages/mx/pypi dist/*
documentation:
name: Build documentation
runs-on: jfjoch_rocky8
@@ -66,20 +82,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