Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify actions #4

Merged
merged 2 commits into from
Dec 7, 2023
Merged
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
35 changes: 13 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,16 @@ on:


jobs:

ruff:
initial_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1

- name: Checkout code
uses: actions/checkout@v3

check_doc_strings:
runs-on: ubuntu-latest
- name: Check code using ruff
uses: chartboost/ruff-action@v1

steps:
- uses: actions/checkout@v3

- name: run Interrogate locally
- name: Check docstrings using interrogate
run: |
pip install interrogate
if [ $(interrogate -c pyproject.toml -v . -f 100 | grep "FAILED" | wc -l) = 1 ]; then
Expand All @@ -31,16 +26,21 @@ jobs:
exit 1
fi

- name: Check code formatting using black
uses: psf/black@stable
with:
options: "--check --verbose"
version: "~= 22.6"

standard_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.9, "3.10", 3.11]
python-version: ["3.9", "3.10", "3.11"]


needs: [code_format, ruff, check_doc_strings]
needs: [initial_checks]
steps:
- uses: actions/checkout@v3

Expand All @@ -62,15 +62,6 @@ jobs:
make test-pip


code_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose"
version: "~= 22.6"