Fix YAML syntax

This commit is contained in:
Micah Jerome Ellison 2021-12-11 14:31:47 -08:00
parent 8cd555b96c
commit 5ed57eb341
3 changed files with 47 additions and 41 deletions

View file

@ -1,22 +1,26 @@
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
name: run jrnl tests
description: Runs all jrnl tests on multiple platforms
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
with:
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
- 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
with:
path: .venv
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }}
- name: Install dependencies
- name: Install dependencies
run: |
echo '::group::poetry'
pip --disable-pip-version-check install poetry
@ -29,20 +33,20 @@ steps:
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
- name: Code formatting (Black)
- name: Code formatting (Black)
if: ${{ env.DEPS_INSTALLED == 'true' }}
run: |
poetry run black --version
poetry run black --check --diff .
- name: Code Style (flake8)
- name: Code Style (flake8)
if: >
${{ env.DEPS_INSTALLED == 'true' }}
run: |
poetry run pflake8 --version
poetry run pflake8 jrnl tests
- name: Test with pytest
- name: Test with pytest
if: >
${{ env.DEPS_INSTALLED == 'true' }}
run: poetry run pytest --junitxml=reports/pytest/results.xml

View file

@ -34,4 +34,5 @@ jobs:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps: ./.github/actions/run_tests.yml
steps:
- uses: ./.github/actions/run_tests.yml

View file

@ -19,4 +19,5 @@ jobs:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10', 3.11-dev ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps: ./.github/actions/run_tests.yml
steps:
- uses: ./.github/actions/run_tests.yml