Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: ["3.11", "3.12"]

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
Expand All @@ -26,9 +26,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[trusted-node]" # editable mode with optional extras
pip install -r requirements.txt
pip install -e .
pip install pytest
pip install pytest pytest-cov black flake8 mypy

- name: Run tests
run: pytest
- name: Check code formatting with Black
run: black --check csb_validator tests

- name: Lint with flake8
run: flake8 csb_validator tests

- name: Static type check with mypy
run: mypy csb_validator

- name: Run tests with coverage
run: pytest --cov=csb_validator --cov-report=term-missing
11 changes: 2 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
author_email="clint.campbell@colorado.edu",
url="https://github.com/CI-CMG/csb-validator",
packages=find_packages(),
install_requires=[
"aiofiles",
"fpdf",
"colorama",
"csbschema"
],
extras_require={
"trusted-node": ["csbschema"]
},
install_requires=["aiofiles", "fpdf", "colorama", "csbschema"],
extras_require={"trusted-node": ["csbschema"]},
entry_points={
"console_scripts": [
"csb-validator=csb_validator.cli:main",
Expand Down
Loading