Update test-package.yml

Revert "Update test-package.yml"

This reverts commit d5cb8ff3fd09d43e3b2d333693b9fd97619a2b7f.

Update test-package.yml

Updated `create-matrix-action` version.

Update test-package.yml

Update test-package.yml

Update test-package.yml

Update test-package.yml
my-merge-progressivo1
Fabio Caccamo 2022-03-09 10:05:28 +01:00
parent d8cffd8c2c
commit 3ff4f05e51
1 changed files with 9 additions and 18 deletions

View File

@ -6,7 +6,8 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
create_matrix:
prepare:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -14,7 +15,8 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Create matrix - name: Create matrix
uses: fabiocaccamo/create-matrix-action@v1 uses: fabiocaccamo/create-matrix-action@v2
id: create_matrix
with: with:
matrix: | matrix: |
python-version {2.7}, django-version {1.8,1.9,1.10,1.11}, database {sqlite,postgres} python-version {2.7}, django-version {1.8,1.9,1.10,1.11}, database {sqlite,postgres}
@ -23,23 +25,18 @@ jobs:
python-version {3.8}, django-version {2.2,3.0,3.1,3.2}, database {sqlite,postgres} python-version {3.8}, django-version {2.2,3.0,3.1,3.2}, database {sqlite,postgres}
python-version {3.9}, django-version {2.2,3.0,3.1,3.2}, database {sqlite,postgres} python-version {3.9}, django-version {2.2,3.0,3.1,3.2}, database {sqlite,postgres}
python-version {3.10}, django-version {3.2,4.0}, database {sqlite,postgres} python-version {3.10}, django-version {3.2,4.0}, database {sqlite,postgres}
- name: Set matrix output variable
id: set_matrix
run: |
echo "::set-output name=matrix::$(cat ./matrix.json)"
outputs: outputs:
matrix: ${{ steps.set_matrix.outputs.matrix }} matrix: ${{ steps.create_matrix.outputs.matrix }}
run_tests: test:
needs: create_matrix needs: prepare
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: ${{fromJson(needs.create_matrix.outputs.matrix)}} include: ${{fromJson(needs.prepare.outputs.matrix)}}
services: services:
postgres: postgres:
@ -55,13 +52,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install psycopg2 prerequisites - name: Install psycopg2 prerequisites
run: sudo apt-get install libpq-dev run: sudo apt-get install libpq-dev