From 58efd7f8c5821cce85ebb699325aaa07f9e0ee89 Mon Sep 17 00:00:00 2001 From: "Gabriele N. Tornetta" Date: Sun, 10 Sep 2023 15:21:50 +0100 Subject: [PATCH] ci: install hatch in own step and set timeout --- .github/workflows/tests.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 86a601e..3e94c13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,14 +45,15 @@ jobs: sudo apt-get update -y sudo apt-get install -y binutils binutils-common addr2line -V + pip install hatch - name: Run tests + timeout-minutes: 30 run: | cd $GITHUB_WORKSPACE/main export PATH="$GITHUB_WORKSPACE/austin/src:$PATH" - pip install hatch - hatch -e "tests.py${{ matrix.python-version }}" run tests - + hatch -e "tests.py${{ matrix.python-version }}" run tests -svv + - name: Publish coverage metrics run: | cd $GITHUB_WORKSPACE/main @@ -96,12 +97,16 @@ jobs: codesign --remove-signature /Library/Frameworks/Python.framework/Versions/${{ matrix.python-version }}/bin/python3 || true codesign --remove-signature /Library/Frameworks/Python.framework/Versions/${{ matrix.python-version }}/Resources/Python.app/Contents/MacOS/Python || true + - name: Install dependencies + run: | + pip install hatch + - name: Run tests + timeout-minutes: 30 run: | cd $GITHUB_WORKSPACE/main export PATH="$GITHUB_WORKSPACE/austin/src:$PATH" - pip install hatch - sudo hatch -e "tests.py${{ matrix.python-version }}" run tests + sudo hatch -e "tests.py${{ matrix.python-version }}" run tests -svv tests-win: runs-on: windows-latest @@ -127,14 +132,18 @@ jobs: ref: devel path: austin - - name: Compile Austin on Windows + - name: Compile Austin run: | cd $env:GITHUB_WORKSPACE/austin gcc.exe -O3 -o src/austin.exe src/*.c -lpsapi -lntdll -Wall -Os -s - - name: Run tests on Windows + - name: Install dependencies + run: | + pip install hatch + + - name: Run tests + timeout-minutes: 30 run: | cd $env:GITHUB_WORKSPACE/main $env:PATH="$env:GITHUB_WORKSPACE\austin\src;$env:PATH" - pip install hatch - hatch -e "tests.py${{ matrix.python-version }}" run tests + hatch -e "tests.py${{ matrix.python-version }}" run tests -svv