Use makefile in test jobs

Reorder test job sorting
This commit is contained in:
jo 2021-09-10 15:13:03 +02:00
parent 00b73a3819
commit c9322fbcc8
1 changed files with 3 additions and 13 deletions

View File

@ -126,8 +126,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
release: [bionic, buster]
context: [python_apps/airtime_analyzer, python_apps/api_clients] context: [python_apps/airtime_analyzer, python_apps/api_clients]
release: [bionic, buster]
container: ghcr.io/libretime/libretime-dev:${{ matrix.release }} container: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
defaults: defaults:
@ -140,20 +140,10 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.context }}-${{ hashFiles('**/setup.py', '**/requirements-dev.txt') }} key: ${{ runner.os }}-pip-${{ matrix.context }}-${{ hashFiles('**/setup.py') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip-${{ matrix.context }} ${{ runner.os }}-pip-${{ matrix.context }}
- name: Install dependencies
run: |
python3 -m venv venv && source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements-dev.txt
pip install -e .
working-directory: ${{ matrix.context }}
- name: Test - name: Test
run: | run: make test
source venv/bin/activate
make test
working-directory: ${{ matrix.context }} working-directory: ${{ matrix.context }}