Skip to content

Commit 6c26ada

Browse files
committed
Merge branch 'master' of github.com:CIRCL/AIL-framework
2 parents 0e457c8 + 00004ad commit 6c26ada

File tree

3 files changed

+395
-4
lines changed

3 files changed

+395
-4
lines changed

.github/workflows/ail_framework_test.yml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,27 @@ jobs:
1717
# The type of runner that the job will run on
1818
runs-on: ubuntu-latest
1919

20-
strategy:
21-
matrix:
22-
python-version: ['3.7', '3.8', '3.9', '3.10']
20+
# TODO: Matrix strategy for Python versions is defined but never used.
21+
# Currently all jobs use the same system Python, making this redundant.
22+
# Either add 'actions/setup-python' to use matrix.python-version, or remove the matrix.
23+
#
24+
# To enable multi-version Python testing:
25+
#
26+
# Step 1: Uncomment the matrix below (defines the Python versions to test):
27+
# strategy:
28+
# matrix:
29+
# python-version: ['3.7', '3.8', '3.9', '3.10']
30+
#
31+
# Step 2: Add this step after checkout (before "Free up disk space"):
32+
# - name: Set up Python ${{ matrix.python-version }}
33+
# uses: actions/setup-python@v4
34+
# with:
35+
# python-version: ${{ matrix.python-version }}
36+
#
37+
# ORIGINAL (commented out - not used, makes tests 4x slower with no benefit):
38+
# strategy:
39+
# matrix:
40+
# python-version: ['3.7', '3.8', '3.9', '3.10']
2341

2442

2543
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -30,6 +48,26 @@ jobs:
3048
submodules: 'recursive'
3149
fetch-depth: 500
3250

51+
# ---------------------------------------------
52+
# NEW STEP: clean up disk BEFORE installing deps
53+
# ---------------------------------------------
54+
- name: Free up disk space
55+
run: |
56+
echo "Disk usage BEFORE cleanup:"
57+
df -h
58+
# Safe: Clear APT cache and lists (can be regenerated)
59+
sudo apt-get clean
60+
sudo rm -rf /var/lib/apt/lists/*
61+
# Probably safe: Remove tools AIL doesn't need (check if exist first)
62+
[ -d /usr/share/dotnet ] && sudo rm -rf /usr/share/dotnet || true
63+
[ -d /opt/ghc ] && sudo rm -rf /opt/ghc || true
64+
[ -d /usr/local/lib/android ] && sudo rm -rf /usr/local/lib/android || true
65+
# Risky but needed: Remove hosted tool cache (contains Python, Node, etc.)
66+
# AIL workflow uses system Python, so this should be safe
67+
[ -d /opt/hostedtoolcache ] && sudo rm -rf /opt/hostedtoolcache || true
68+
echo "Disk usage AFTER cleanup:"
69+
df -h
70+
# ---------------------------------------------
3371

3472
# Runs a single command using the runners shell
3573
- name: Install AIL

bin/LAUNCH.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function launch_tests() {
606606
echo -e $GREEN"\t* Flask: $isflasked"$DEFAULT
607607
echo -e ""
608608
echo -e ""
609-
python3 -m nose2 --start-dir $tests_dir --coverage $bin_dir --with-coverage test_api test_modules
609+
python3 -m nose2 --start-dir $tests_dir --coverage $bin_dir --with-coverage test_api test_modules test_api_crawler
610610
exit $?
611611
}
612612

0 commit comments

Comments
 (0)