Skip to content

Merge pull request #21 from aurora-multiphysics/20-refactor-sledo-to-… #32

Merge pull request #21 from aurora-multiphysics/20-refactor-sledo-to-…

Merge pull request #21 from aurora-multiphysics/20-refactor-sledo-to-… #32

Workflow file for this run

name: CI
# This section controls when the workflow will run
on:
# Run the workflow on push to "main" branch
push:
branches: [ "main" ]
# Run the workflow on pull request to "main" branch and ready for review
pull_request:
branches: [ "main"]
types: [ready_for_review]
# Run the workflow manually
workflow_dispatch:
# This section controls which jobs the workflow will run
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install sledo
run: pip install .[ci]
- name: Clone and install mooseherder
run: |
cd ..
git clone https://github.com/ScepticalRabbit/mooseherder
cd sledo
pip install ../mooseherder
- name: Clone and install catbird
run: |
cd ..
git clone https://github.com/helen-brooks/catbird
cd sledo
pip install ../catbird
- name: Run linter
run: flake8 . --exclude=venv* --count --max-complexity=10 --max-line-length=79 --statistics
- name: Run tests
run: pytest tests