From c9322fbcc837bb4b8f9d8975a4648af8b4ab3938 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 10 Sep 2021 15:13:03 +0200 Subject: [PATCH] Use makefile in test jobs Reorder test job sorting --- .github/workflows/test.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8181bf31..3c8214d14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -126,8 +126,8 @@ jobs: strategy: fail-fast: false matrix: - release: [bionic, buster] context: [python_apps/airtime_analyzer, python_apps/api_clients] + release: [bionic, buster] container: ghcr.io/libretime/libretime-dev:${{ matrix.release }} defaults: @@ -140,20 +140,10 @@ jobs: - uses: actions/cache@v2 with: 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: | ${{ 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 - run: | - source venv/bin/activate - make test + run: make test working-directory: ${{ matrix.context }}