From 2b1e113eb4cc4bbd6f16670da782e1e78b21f1e5 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 26 Aug 2025 15:42:24 +0200 Subject: [PATCH] Delete .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 94 --------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index 6706d28ba..000000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Run CI Tests - -on: - push: - branches: [test_actions_on_utils] - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout test-ci repo - uses: actions/checkout@v4 - with: - repository: tligui_y/test-ci - ref: main - path: test-ci - - - name: Follow Code Progress - uses: ./test-ci - with: - ci-branch: test_actions_on_utils - module-dir: slic - gitea-domain: gitea.psi.ch - repo-path: tligui_y/slic - ci-token: ${{ secrets.CI_TOKEN }} - apt_packages: "postfix meson ninja-build build-essential gcc libdbus-1-dev python3-pip dunst xvfb tmux" - custom_shell_commands_before: | - # for elog - - pixi add pip - pixi run pip install git+https://github.com/paulscherrerinstitute/py_elog.git - bash install_elog.sh - - # for IOC - - git clone --depth 1 https://gitea.psi.ch/SwissFEL/morbidissimo.git - - if [ -d morbidissimo/src/morbidissimo ]; then - echo "PYTHONPATH=$(pwd)/morbidissimo/src:$(pwd)" >> $GITHUB_ENV - elif [ -d morbidissimo/morbidissimo ]; then - echo "PYTHONPATH=$(pwd)/morbidissimo:$(pwd)" >> $GITHUB_ENV - fi - - [ -f tests/ioc_plugin.py ] && cp tests/ioc_plugin.py ioc_plugin.py - echo "PYTEST_ADDOPTS=-p ioc_plugin" >> $GITHUB_ENV - echo "TEST_PV_PREFIX=TEST:" >> $GITHUB_ENV - - echo "EPICS_CA_AUTO_ADDR_LIST=NO" >> $GITHUB_ENV - echo "EPICS_CA_ADDR_LIST=127.0.0.1" >> $GITHUB_ENV - echo "EPICS_CA_CONN_TMO=0.5" >> $GITHUB_ENV - - # for send mail - - sudo postconf -e myhostname=localhost - sudo postconf -e 'mydestination=localhost.localdomain, localhost, swissphone-gateway.com' - sudo postconf -e inet_interfaces=loopback-only - sudo postconf -e home_mailbox=Maildir/ - sudo service postfix restart - - mkdir -p ~/Maildir/{cur,new,tmp} - - sudo service postfix restart - - postconf -n | egrep 'myhostname|mydestination|inet_interfaces|home_mailbox' - ls -ld ~/Maildir ~/Maildir/{cur,new,tmp} - - printf "Subject: probe\nTo: $(whoami)@localhost\n\nhi\n" | sendmail -v "$(whoami)@localhost" - # Then: - ls ~/Maildir/new - - test-run-cmd: | - dbus-run-session -- bash -c ' - - set -e - set -x - Xvfb :99 -screen 0 1024x768x24 & - XVFB_PID=$! - export DISPLAY=:99 - - dunst -print & - DUNST_PID=$! - sleep 1 - - # MAIN - tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\"; tmux wait-for -S done\"" - sleep 1 - tmux wait-for done - - kill $DUNST_PID - kill $XVFB_PID - sleep 1 - ' - continue-on-error: true \ No newline at end of file