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.ymlmy-merge-progressivo1
parent
d8cffd8c2c
commit
3ff4f05e51
|
|
@ -6,7 +6,8 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
create_matrix:
|
||||
|
||||
prepare:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -14,7 +15,8 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Create matrix
|
||||
uses: fabiocaccamo/create-matrix-action@v1
|
||||
uses: fabiocaccamo/create-matrix-action@v2
|
||||
id: create_matrix
|
||||
with:
|
||||
matrix: |
|
||||
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.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}
|
||||
|
||||
- name: Set matrix output variable
|
||||
id: set_matrix
|
||||
run: |
|
||||
echo "::set-output name=matrix::$(cat ./matrix.json)"
|
||||
|
||||
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
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include: ${{fromJson(needs.create_matrix.outputs.matrix)}}
|
||||
include: ${{fromJson(needs.prepare.outputs.matrix)}}
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
|
@ -55,13 +52,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install psycopg2 prerequisites
|
||||
run: sudo apt-get install libpq-dev
|
||||
|
|
|
|||
Loading…
Reference in New Issue