switching matrix to env
This commit is contained in:
parent
b927ae3d73
commit
81ec070346
@ -1,13 +1,15 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
python-version: '3.10'
|
||||||
|
poetry-version: 1.8.3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.10']
|
|
||||||
poetry-version: [1.3.1]
|
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@ -18,12 +20,12 @@ jobs:
|
|||||||
- name: Install Python 3
|
- name: Install Python 3
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ env.python-version }}
|
||||||
|
|
||||||
- name: Install Poetry # dependency management
|
- name: Install Poetry # dependency management
|
||||||
uses: abatilo/actions-poetry@v2.1.6
|
uses: abatilo/actions-poetry@v2.1.6
|
||||||
with:
|
with:
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
poetry-version: ${{ env.poetry-version }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: poetry install
|
run: poetry install
|
||||||
@ -45,12 +47,12 @@ jobs:
|
|||||||
- name: Install Python 3
|
- name: Install Python 3
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ env.python-version }}
|
||||||
|
|
||||||
- name: Install Poetry # dependency management
|
- name: Install Poetry # dependency management
|
||||||
uses: abatilo/actions-poetry@v2.1.6
|
uses: abatilo/actions-poetry@v2.1.6
|
||||||
with:
|
with:
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
poetry-version: ${{ env.poetry-version }}
|
||||||
|
|
||||||
- name: Add SarGit Repo
|
- name: Add SarGit Repo
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user