Skip to content

Commit aeb3dec

Browse files
ci: add system info step to all workflows
1 parent 7886865 commit aeb3dec

5 files changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/container.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1717

18+
- name: System info
19+
run: |
20+
echo "OS: $(uname -s)"
21+
echo "Architecture: $(uname -m)"
22+
echo "CPU cores: $(nproc)"
23+
if [ "$RUNNER_OS" = "Linux" ]; then
24+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
25+
elif [ "$RUNNER_OS" = "macOS" ]; then
26+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
27+
fi
28+
python3 --version
29+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
30+
1831
- name: Set up Docker Buildx
1932
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
2033

.github/workflows/docs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

23+
- name: System info
24+
run: |
25+
echo "OS: $(uname -s)"
26+
echo "Architecture: $(uname -m)"
27+
echo "CPU cores: $(nproc)"
28+
if [ "$RUNNER_OS" = "Linux" ]; then
29+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
30+
elif [ "$RUNNER_OS" = "macOS" ]; then
31+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
32+
fi
33+
python3 --version
34+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
35+
2336
- name: Set up Python
2437
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2538
with:

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717

18+
- name: System info
19+
run: |
20+
echo "OS: $(uname -s)"
21+
echo "Architecture: $(uname -m)"
22+
echo "CPU cores: $(nproc)"
23+
if [ "$RUNNER_OS" = "Linux" ]; then
24+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
25+
elif [ "$RUNNER_OS" = "macOS" ]; then
26+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
27+
fi
28+
python3 --version
29+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
30+
1831
- name: Set up Python
1932
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2033
with:

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

22+
- name: System info
23+
run: |
24+
echo "OS: $(uname -s)"
25+
echo "Architecture: $(uname -m)"
26+
echo "CPU cores: $(nproc)"
27+
if [ "$RUNNER_OS" = "Linux" ]; then
28+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
29+
elif [ "$RUNNER_OS" = "macOS" ]; then
30+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
31+
fi
32+
python3 --version
33+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
34+
2235
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v5
2336

2437
- name: Build

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222

23+
- name: System info
24+
run: |
25+
echo "OS: $(uname -s)"
26+
echo "Architecture: $(uname -m)"
27+
echo "CPU cores: $(nproc)"
28+
if [ "$RUNNER_OS" = "Linux" ]; then
29+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
30+
elif [ "$RUNNER_OS" = "macOS" ]; then
31+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
32+
fi
33+
python3 --version
34+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
35+
2336
- name: Free disk space (Linux)
2437
if: runner.os == 'Linux'
2538
run: |
@@ -47,6 +60,19 @@ jobs:
4760
steps:
4861
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4962

63+
- name: System info
64+
run: |
65+
echo "OS: $(uname -s)"
66+
echo "Architecture: $(uname -m)"
67+
echo "CPU cores: $(nproc)"
68+
if [ "$RUNNER_OS" = "Linux" ]; then
69+
echo "Memory: $(free -h | awk '/^Mem:/{print $2}')"
70+
elif [ "$RUNNER_OS" = "macOS" ]; then
71+
echo "Memory: $(sysctl -n hw.memsize | awk '{printf "%.1f GB\n", $1/1e9}')"
72+
fi
73+
python3 --version
74+
echo "Runner: $RUNNER_OS / $RUNNER_ARCH"
75+
5076
- name: Set up Python 3.11
5177
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
5278
with:

0 commit comments

Comments
 (0)