Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add option to make list of syntax highlighting list shorter #116

Add option to make list of syntax highlighting list shorter

Add option to make list of syntax highlighting list shorter #116

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main, next ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Cache Pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Run Linter
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Cache Pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
- name: Run Unit Tests
run: mkdir reports && nose2
- name: Upload Test Reports
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: reports
path: reports/