Skip to content

Commit 0a219d8

Browse files
committed
fix: [cicd] Brought ci/cd to this century ;)
1 parent 81fd358 commit 0a219d8

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/ail_framework_test.yml

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

20+
env:
21+
AIL_HOME: ${{ github.workspace }}
22+
AIL_BIN: ${{ github.workspace }}/bin
23+
2024
strategy:
2125
matrix:
22-
python-version: ['3.7', '3.8', '3.9', '3.10']
26+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2327

2428

2529
# Steps represent a sequence of tasks that will be executed as part of the job
2630
steps:
2731
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
2933
with:
3034
submodules: 'recursive'
3135
fetch-depth: 500
3236

37+
- name: Set up Python
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
cache: 'pip'
42+
cache-dependency-path: requirements.txt
3343

3444
# Runs a single command using the runners shell
3545
- name: Install AIL
3646
run: bash installing_deps.sh
3747

48+
- name: Install Python dependencies
49+
run: |
50+
python -m venv .venv
51+
source .venv/bin/activate
52+
python -m pip install --upgrade pip
53+
pip install -r requirements.txt
54+
3855
# Runs a set of commands using the runners shell
3956
- name: Launch AIL
4057
run: |
58+
source .venv/bin/activate
4159
pushd bin
4260
bash LAUNCH.sh -l
4361
popd
4462
4563
# Runs a set of commands using the runners shell
4664
- name: Run tests
4765
run: |
66+
source .venv/bin/activate
4867
pushd bin
4968
bash LAUNCH.sh -t
69+
popd

0 commit comments

Comments
 (0)