Skip to content

Commit

Permalink
Merge branch 'main' into codecov-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairK5669 authored Mar 26, 2024
2 parents 6c23411 + 2c7ea9b commit f30d618
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
status:
project:
default:
target: 60%
threshold: 5%
if_ci_failed: error
23 changes: 23 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Docs Build Successfully on PR Check"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ammaraskar/[email protected]
with:
docs-folder: "docs/"
pre-build-command: pip install -U sphinx sphinx-rtd-theme
- uses: actions/upload-artifact@v4
with:
name: UserGuideHTML
path: "docs/build/html/"
43 changes: 43 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: flake8 Lint

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Flake8 Lint
steps:
- name: Check out
uses: actions/checkout@v3

- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry lock --no-update
poetry install
pip install black
pip install isort
- name: Run Black
run: black ./ --config pyproject.toml

- name: Run Isort
run: isort .

- name: Setup flake8 annotations
uses: rbialon/flake8-annotations@v1

- name: Link and annotate with Flake8
uses: py-actions/flake8@v2
4 changes: 3 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
:scale: 75%
:alt: RIA Core
:align: center

:height: 315px
:width: 2000px

|
.. raw:: html
Expand Down
5 changes: 4 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/dummy_test/test_dummy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
def test_dummy():

assert True #test: no cover

# def test_another_dummy():
# assert False, "This test intentionally fails"


def test_addition():
assert 1 + 1 == 2

Expand Down

0 comments on commit f30d618

Please sign in to comment.