mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Fix YAML syntax
This commit is contained in:
parent
8cd555b96c
commit
5ed57eb341
3 changed files with 47 additions and 41 deletions
82
.github/actions/run_tests.yml
vendored
82
.github/actions/run_tests.yml
vendored
|
@ -1,48 +1,52 @@
|
||||||
steps:
|
name: run jrnl tests
|
||||||
- run: git config --global core.autocrlf false
|
description: Runs all jrnl tests on multiple platforms
|
||||||
- uses: actions/checkout@v2
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- run: git config --global core.autocrlf false
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Capture full Python version in env
|
- name: Capture full Python version in env
|
||||||
run: echo "PYTHON_FULL_VERSION=$(python --version)" >> $GITHUB_ENV
|
run: echo "PYTHON_FULL_VERSION=$(python --version)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: poetry cache # Change CACHE_STRING secret to bust the cache
|
- name: poetry cache # Change CACHE_STRING secret to bust the cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }}
|
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
echo '::group::poetry'
|
echo '::group::poetry'
|
||||||
pip --disable-pip-version-check install poetry
|
pip --disable-pip-version-check install poetry
|
||||||
poetry config --local virtualenvs.in-project true
|
poetry config --local virtualenvs.in-project true
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo '::group::Other dependencies'
|
echo '::group::Other dependencies'
|
||||||
poetry install --remove-untracked
|
poetry install --remove-untracked
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
|
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Code formatting (Black)
|
- name: Code formatting (Black)
|
||||||
if: ${{ env.DEPS_INSTALLED == 'true' }}
|
if: ${{ env.DEPS_INSTALLED == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
poetry run black --version
|
poetry run black --version
|
||||||
poetry run black --check --diff .
|
poetry run black --check --diff .
|
||||||
|
|
||||||
- name: Code Style (flake8)
|
- name: Code Style (flake8)
|
||||||
if: >
|
if: >
|
||||||
${{ env.DEPS_INSTALLED == 'true' }}
|
${{ env.DEPS_INSTALLED == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
poetry run pflake8 --version
|
poetry run pflake8 --version
|
||||||
poetry run pflake8 jrnl tests
|
poetry run pflake8 jrnl tests
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
if: >
|
if: >
|
||||||
${{ env.DEPS_INSTALLED == 'true' }}
|
${{ env.DEPS_INSTALLED == 'true' }}
|
||||||
run: poetry run pytest --junitxml=reports/pytest/results.xml
|
run: poetry run pytest --junitxml=reports/pytest/results.xml
|
||||||
|
|
3
.github/workflows/testing_prs.yaml
vendored
3
.github/workflows/testing_prs.yaml
vendored
|
@ -34,4 +34,5 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
|
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
|
||||||
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
steps: ./.github/actions/run_tests.yml
|
steps:
|
||||||
|
- uses: ./.github/actions/run_tests.yml
|
||||||
|
|
3
.github/workflows/testing_schedule.yaml
vendored
3
.github/workflows/testing_schedule.yaml
vendored
|
@ -19,4 +19,5 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ 3.7, 3.8, 3.9, '3.10', 3.11-dev ]
|
python-version: [ 3.7, 3.8, 3.9, '3.10', 3.11-dev ]
|
||||||
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
steps: ./.github/actions/run_tests.yml
|
steps:
|
||||||
|
- uses: ./.github/actions/run_tests.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue