pull/68/head^2
Kye 1 year ago
parent 877cb41c43
commit fe54e84741

@ -3,7 +3,7 @@ name: Linting and Formatting
on:
push:
branches:
- main
- master
jobs:
lint_and_format:

@ -3,7 +3,7 @@ name: Continuous Integration
on:
push:
branches:
- main
- master
jobs:
test:

@ -23,5 +23,5 @@ jobs:
- name: Run tests and checks
run: |
pytest tests/
find tests/ -name "*.py" | xargs pytest
pylint swarms

@ -2,9 +2,9 @@ name: Quality
on:
push:
branches: [ "main" ]
branches: [ "master" ]
pull_request:
branches: [ "main" ]
branches: [ "master" ]
jobs:
lint:
@ -20,4 +20,4 @@ jobs:
uses: ./.github/actions/init-environment
- name: Run linter
run: |
pylint `git diff --name-only --diff-filter=d origin/main HEAD | grep -E '\.py$' | tr '\n' ' '`
pylint `git diff --name-only --diff-filter=d origin/master HEAD | grep -E '\.py$' | tr '\n' ' '`

@ -20,4 +20,4 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests with pytest
run: |
pytest tests/
find tests/ -name "*.py" | xargs pytest

@ -22,4 +22,4 @@ jobs:
run: pip install -r requirements.txt
- name: Run unit tests
run: pytest tests/
run: find tests/ -name "*.py" | xargs pytest

@ -30,4 +30,4 @@ jobs:
run: docker build . --file Dockerfile
- name: Verify integration test results
run: python3 -m unittest tests/
run: find tests/ -name "*.py" | xargs pytest

Loading…
Cancel
Save