From 17d9698ffee17874074fa42afbc1fff2aa8deba5 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:32:38 -0400 Subject: [PATCH 01/10] Create codecov.yml --- .github/workflows/codecov.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..aeb22d5 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,25 @@ +name: Workflow for Codecov example-python +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install pytest pytest-cov + - name: Run tests and collect coverage + run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 43f1c72a43ea581aa7ce0dd874d3ff2134c4dea9 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:33:56 -0400 Subject: [PATCH 02/10] Update codecov.yml --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index aeb22d5..15676dd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,7 +14,7 @@ jobs: python-version: '3.10' - name: Install dependencies run: | - python -m pip install pytest pytest-cov + python -m pip install obsidian-apo pytest pytest-cov - name: Run tests and collect coverage run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} - name: Upload coverage to Codecov From e44e4b10024effa801f09f4a8d0d7432c7ecdc57 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:56:36 -0400 Subject: [PATCH 03/10] Update codecov.yml --- .github/workflows/codecov.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 15676dd..83aaece 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,25 +1,24 @@ -name: Workflow for Codecov example-python +name: Workflow for Codecov + on: [push, pull_request] + jobs: - run: + build: runs-on: ubuntu-latest + name: obsidian Pytest steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Set up Python 3.10 uses: actions/setup-python@v4 with: python-version: '3.10' - name: Install dependencies - run: | - python -m pip install obsidian-apo pytest pytest-cov + run: pip install obsidian-apo pytest pytest-cov - name: Run tests and collect coverage - run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: pytest --cov + - name: Upload coverage reports to Codecov + run: | + curl -Os https://cli.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml From df3ac80376ff15a08cc616c06ce0d417eeeb7e9c Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:05:56 -0400 Subject: [PATCH 04/10] Update codecov.yml --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 83aaece..29c7c32 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: pip install obsidian-apo pytest pytest-cov - name: Run tests and collect coverage - run: pytest --cov + run: pytest --cov . - name: Upload coverage reports to Codecov run: | curl -Os https://cli.codecov.io/latest/linux/codecov From 5325066475f09a1084e4f2d57bfe640a17a66807 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:18:27 -0400 Subject: [PATCH 05/10] Update pytest.ini --- pytest.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 24901f4..b33b8cf 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,7 +2,6 @@ markers = fast slow -addopts = --cov=obsidian --cov-branch --cov-report html:logs/pytestCovReport -ra filterwarnings = ignore::botorch.exceptions.warnings.NumericsWarning @@ -11,4 +10,4 @@ filterwarnings = ignore::botorch.exceptions.warnings.OptimizationWarning ignore::linear_operator.utils.warnings.NumericalWarning ignore::gpytorch.utils.warnings.GPInputWarning - ignore::UserWarning \ No newline at end of file + ignore::UserWarning From 8503a644099b1e9749108543f9749a5a752b46bd Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:31:26 -0400 Subject: [PATCH 06/10] Update codecov.yml --- .github/workflows/codecov.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 29c7c32..4df5261 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -16,9 +16,8 @@ jobs: - name: Install dependencies run: pip install obsidian-apo pytest pytest-cov - name: Run tests and collect coverage - run: pytest --cov . - - name: Upload coverage reports to Codecov - run: | - curl -Os https://cli.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml + run: pytest --cov=obsidian --cov-report=xml + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v4.2.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 0ccf7439b2a4c2db345bb0ec0ff5b2f513a3523f Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:50:20 -0400 Subject: [PATCH 07/10] Update codecov.yml --- .github/workflows/codecov.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4df5261..38d4aa9 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,23 +1,21 @@ -name: Workflow for Codecov +name: API workflow on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - name: obsidian Pytest + name: Test python API steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install dependencies - run: pip install obsidian-apo pytest pytest-cov - - name: Run tests and collect coverage - run: pytest --cov=obsidian --cov-report=xml - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v4.2.0 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - uses: actions/checkout@v4 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install requirements + run: pip install obsidian-apo pytest-cov + - name: Run tests and collect coverage + run: pytest --cov=obsidian --cov-report=xml + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v4.2.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 729e4420306dec29e8a7f7f50ade140d5562e915 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:28:05 -0400 Subject: [PATCH 08/10] Update codecov.yml --- .github/workflows/codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 38d4aa9..646527b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -12,9 +12,9 @@ jobs: with: python-version: '3.10' - name: Install requirements - run: pip install obsidian-apo pytest-cov + run: pip install obsidian-apo[dev] - name: Run tests and collect coverage - run: pytest --cov=obsidian --cov-report=xml + run: pytest --cov=. - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v4.2.0 env: From 3c9e1985291b515d6c51f931482d701c10c9d176 Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:39:25 -0400 Subject: [PATCH 09/10] Add __init__ to tests --- obsidian/tests/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 obsidian/tests/__init__.py diff --git a/obsidian/tests/__init__.py b/obsidian/tests/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/obsidian/tests/__init__.py @@ -0,0 +1 @@ + From 637dcfb294f5041bdfd7f5d1dfdf83a76378f0ce Mon Sep 17 00:00:00 2001 From: Kevin Stone <91576158+kstone40@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:55:45 -0400 Subject: [PATCH 10/10] Update codecov.yml --- .github/workflows/codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 646527b..43e2f6a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,11 +1,11 @@ -name: API workflow +name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - name: Test python API + name: Pytest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v2