Skip to content

fix: correct units for memory metrics #202

fix: correct units for memory metrics

fix: correct units for memory metrics #202

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Tests with Python ${{ matrix.python-version }} on Linux
steps:
- uses: actions/checkout@v3
with:
path: main
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}-dev
- name: Checkout Austin development branch
uses: actions/checkout@master
with:
repository: P403n1x87/austin
ref: devel
path: austin
- name: Compile Austin
run: |
cd $GITHUB_WORKSPACE/austin
gcc -Wall -O3 -Os -s -pthread src/*.c -o src/austin
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y binutils binutils-common
addr2line -V
pip install hatch
- name: Run tests
timeout-minutes: 10
run: |
cd $GITHUB_WORKSPACE/main
export PATH="$GITHUB_WORKSPACE/austin/src:$PATH"
hatch -e "tests.py${{ matrix.python-version }}" run tests -svv
- name: Publish coverage metrics
run: |
cd $GITHUB_WORKSPACE/main
hatch -e coverage run cov
hatch -e coverage run codecov
if: matrix.python-version == '3.10'
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
tests-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Tests with Python ${{ matrix.python-version }} on MacOS
steps:
- uses: actions/checkout@v3
with:
path: main
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}-dev
- name: Checkout Austin development branch
uses: actions/checkout@master
with:
repository: P403n1x87/austin
ref: devel
path: austin
- name: Compile Austin
run: |
cd $GITHUB_WORKSPACE/austin
gcc -Wall -O3 -Os src/*.c -o src/austin
- name: Remove signature from the Python binary
run: |
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: 10
run: |
cd $GITHUB_WORKSPACE/main
export PATH="$GITHUB_WORKSPACE/austin/src:$PATH"
sudo hatch -e "tests.py${{ matrix.python-version }}" run tests -svv
tests-win:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Tests with Python ${{ matrix.python-version }} on Windows
steps:
- uses: actions/checkout@v3
with:
path: main
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}-dev
- name: Checkout Austin development branch
uses: actions/checkout@master
with:
repository: P403n1x87/austin
ref: devel
path: austin
- name: Compile Austin
run: |
cd $env:GITHUB_WORKSPACE/austin
gcc.exe -O3 -o src/austin.exe src/*.c -lpsapi -lntdll -Wall -Os -s
- name: Install dependencies
run: |
pip install hatch
- name: Run tests
timeout-minutes: 10
run: |
cd $env:GITHUB_WORKSPACE/main
$env:PATH="$env:GITHUB_WORKSPACE\austin\src;$env:PATH"
hatch -e "tests.py${{ matrix.python-version }}" run tests -svv