Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ jobs:
BRANCH=${{ env.BRANCH }}
cd covref
git pull origin coverage-reference
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just ensures we have the very latest changes right before we push our changes

git config user.name github-actions[bot]
git config user.email "github-actions[bot]@users.noreply.github.com"
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
});
Sphinx-Pytest:
Pytest:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -209,13 +210,6 @@ jobs:
safety check || true
shell: micromamba-shell {0}

- name: sphinx documentation
run: |
micromamba install ipykernel
pip install .
make -C doc html SPHINXOPTS="-W --keep-going"
shell: micromamba-shell {0}

- name: pytest
run: |
pytest
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/master_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-depth: 1

- name: Substitute branch name in environment files
run: |
Expand All @@ -39,20 +39,24 @@ jobs:
pytest --cov=improver --cov-report=term --cov-report=html | tee coverage_output.txt; test ${PIPESTATUS[0]} -eq 0
shell: micromamba-shell {0}

- name: Checkout reference coverage report
uses: actions/checkout@v6
with:
fetch-depth: 1
path: covref
ref: coverage-reference

- name: Commit and push coverage report
run: |
cd covref
git config user.name github-actions[bot]
git config user.email "github-actions[bot]@users.noreply.github.com"
git worktree add /tmp/coverage-ref coverage-reference
rm -rf /tmp/coverage-ref/master/
mkdir /tmp/coverage-ref/master/
cp coverage_output.txt /tmp/coverage-ref/master/.
cp -r htmlcov/ /tmp/coverage-ref/master/.
rm -rf master/
mkdir master/
cd /tmp/coverage-ref
cp ../coverage_output.txt master/.
cp -r ../htmlcov/ master/.
git add -f master/
# identify directories who's creation date is older than 14 days (excluding master/) and remove them
Expand Down
171 changes: 0 additions & 171 deletions .github/workflows/scheduled.yml

This file was deleted.

5 changes: 2 additions & 3 deletions envs/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ dependencies:
- pytest-cov
- pytest-xdist
- sphinx-autodoc-typehints
- sphinx-book-theme
- sphinx-book-theme
- sphinx-gallery
- threadpoolctl
- pytest-xdist
- pip
- pip:
- git+https://github.com/metoppv/improver_example_data.git@${BRANCH_NAME}
- git+https://github.com/metoppv/improver_example_data.git@${BRANCH_NAME}