diff --git a/.gitea/workflows/run_tests.yaml b/.gitea/workflows/run_tests.yaml index ed8fcd3..3ab64d6 100644 --- a/.gitea/workflows/run_tests.yaml +++ b/.gitea/workflows/run_tests.yaml @@ -1,5 +1,5 @@ name: Run tests -run-name: ${{ gitea.actor }} confirming that tests pass +run-name: Running Tests on: [push] jobs: @@ -14,18 +14,19 @@ jobs: chmod +x llvm.sh sudo ./llvm.sh 22 sudo apt-get update + - uses: actions/setup-python@v6 with: python-version: '3.13' - - run: sudo apt update && sudo apt install -y meson - - run: meson setup --native-file=build_options/meson-clang-linux build - - run: meson test -c build - # - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - # - name: Check out repository code - # - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - # - run: echo "🖥️ The workflow is now ready to test your code on the runner." - # - name: List files in the repository - # run: | - # ls ${{ gitea.workspace }} - # - run: echo "🍏 This job's status is ${{ job.status }}." + run: | + python3 -m venv .venv + . .venv/bin/activate + echo "$PWD/.venv/bin" >> "$GITHUB_PATH" + python -m pip install --upgrade pip + python -m pip install meson + python -m pip install ninja + + - name: Setup build directory + run: meson setup --native-file=build_options/meson-clang-linux build + - name: Run tests + run: meson test -C build