mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
try to use matrix for python version
This commit is contained in:
parent
714e9c6660
commit
22692a3bee
1 changed files with 5 additions and 11 deletions
16
.github/workflows/python-app.yml
vendored
16
.github/workflows/python-app.yml
vendored
|
@ -19,20 +19,15 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Python version
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
id: get-python-version
|
uses: actions/setup-python@v2
|
||||||
run: |
|
with:
|
||||||
echo "::set-output \"name=python::$(python --version)\""
|
python-version: ${{ matrix.python-version }}
|
||||||
shell: bash
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.venv
|
.venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ steps.get-python-version.outputs.python }}
|
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
|
||||||
- name: Set up Python 3.8
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install poetry
|
pip install poetry
|
||||||
|
@ -44,4 +39,3 @@ jobs:
|
||||||
- name: Test with behave
|
- name: Test with behave
|
||||||
run: |
|
run: |
|
||||||
poetry run behave --no-skipped --format progress2
|
poetry run behave --no-skipped --format progress2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue