Skip to content

Commit

Permalink
ci: install hatch in own step and set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Sep 10, 2023
1 parent d1dd338 commit c6867e9
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

name: Tests with Python ${{ matrix.python-version }} on Linux
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: main

Expand All @@ -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
Expand All @@ -71,7 +72,7 @@ jobs:

name: Tests with Python ${{ matrix.python-version }} on MacOS
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: main

Expand All @@ -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
Expand All @@ -112,7 +117,7 @@ jobs:

name: Tests with Python ${{ matrix.python-version }} on Windows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: main

Expand All @@ -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

0 comments on commit c6867e9

Please sign in to comment.