diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 49c34650..44420685 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,6 +1,6 @@ ## What does this pull request do? -## Relevent Github ticket(s)? +## Relevant Github ticket(s)? diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 06cac123..f37c9e10 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,12 +1,12 @@ name: Unit Tests + on: - push: - branches: - - '*' + # push: + # branches: + # - '*' + pull_request: - branches: - - '*' jobs: linux: @@ -49,4 +49,5 @@ jobs: - name: Install dependencies run: uv sync --extra docs - name: Run doctests - run: cd docs && uv run jb build . --builder=custom --custom-builder=doctest + run: uv run --directory docs jb build . --builder=custom --custom-builder=doctest + diff --git a/chainladder/utils/utility_functions.py b/chainladder/utils/utility_functions.py index e67b8336..37c381f1 100644 --- a/chainladder/utils/utility_functions.py +++ b/chainladder/utils/utility_functions.py @@ -73,22 +73,22 @@ def load_sample( .. testcode:: - tr = cl.load_sample("raa") - tr + tr = cl.load_sample("raa") + print(tr) .. testoutput:: - 12 24 36 48 60 72 84 96 108 120 - 1981 5,012 8,269 10,907 11,805 13,539 16,181 18,009 18,608 18,662 18,834 - 1982 106 4,285 5,396 10,666 13,782 15,599 15,496 16,169 16,704 - 1983 3,410 8,992 13,873 16,141 18,735 22,214 22,863 23,466 - 1984 5,655 11,555 15,766 21,266 23,425 26,083 27,067 - 1985 1,092 9,565 15,836 22,169 25,955 26,180 - 1986 1,513 6,445 11,702 12,935 15,852 - 1987 557 4,020 10,946 12,314 - 1988 1,351 6,947 13,112 - 1989 3,133 5,395 - 1990 2,063 + 12 24 36 48 60 72 84 96 108 120 + 1981 5012.0 8269.0 10907.0 11805.0 13539.0 16181.0 18009.0 18608.0 18662.0 18834.0 + 1982 106.0 4285.0 5396.0 10666.0 13782.0 15599.0 15496.0 16169.0 16704.0 NaN + 1983 3410.0 8992.0 13873.0 16141.0 18735.0 22214.0 22863.0 23466.0 NaN NaN + 1984 5655.0 11555.0 15766.0 21266.0 23425.0 26083.0 27067.0 NaN NaN NaN + 1985 1092.0 9565.0 15836.0 22169.0 25955.0 26180.0 NaN NaN NaN NaN + 1986 1513.0 6445.0 11702.0 12935.0 15852.0 NaN NaN NaN NaN NaN + 1987 557.0 4020.0 10946.0 12314.0 NaN NaN NaN NaN NaN NaN + 1988 1351.0 6947.0 13112.0 NaN NaN NaN NaN NaN NaN NaN + 1989 3133.0 5395.0 NaN NaN NaN NaN NaN NaN NaN NaN + 1990 2063.0 NaN NaN NaN NaN NaN NaN NaN NaN NaN