Compare commits

..

1 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

View File

@@ -52,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
@@ -60,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
@@ -72,6 +86,8 @@ jobs:
if: github.ref_type == 'tag'
shell: bash
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
@@ -84,16 +100,6 @@ jobs:
git add .
git commit -m "Deploy site"
git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
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
unit-tests:
name: Unit tests
runs-on: jfjoch_rocky8