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

Trigger a subset of tests #513

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e223ef5
only trigger ci/asv_benchmarking on non-docs
cyschneck Nov 9, 2023
a920fb3
update release-notes.rst
cyschneck Nov 9, 2023
183c19c
paths-ignore -> paths
cyschneck Nov 9, 2023
fc94597
update release-notes.rst
cyschneck Nov 9, 2023
e6798fd
ignore *.md files
cyschneck Nov 9, 2023
7d4512d
update release-notes.rst
cyschneck Nov 9, 2023
dca703d
paths-ignore for pull_request
cyschneck Nov 9, 2023
be3fe5a
update release-notes.rst
cyschneck Nov 9, 2023
ce646cd
test local branch
cyschneck Nov 9, 2023
7e6d15a
test PR
cyschneck Nov 9, 2023
2a01d21
paths-ignore -> changed-files compare
cyschneck Nov 9, 2023
2fae490
fix step to check changed files
cyschneck Nov 9, 2023
8a02e31
fix with file option
cyschneck Nov 9, 2023
6abc2ef
update release-notes.rst
cyschneck Nov 9, 2023
d25d94c
compare against outputs
cyschneck Nov 10, 2023
29f9a07
debug: list changed files
cyschneck Nov 10, 2023
30726ee
compare most recent commit, not all commits
cyschneck Nov 10, 2023
87e8446
check against only changed files
cyschneck Nov 10, 2023
39a665f
only store/record non-documentation files
cyschneck Nov 10, 2023
e18466a
files_ignore path
cyschneck Nov 10, 2023
fa19169
debugging tests not running
cyschneck Nov 10, 2023
69d8ee7
Merge branch 'main' into subset_tests_512
cyschneck Nov 10, 2023
dea92f5
reduce fetch_depth to ignore previous commit
cyschneck Nov 10, 2023
66f0d3a
Merge branch 'subset_tests_512' of https://github.com/cyschneck/geoca…
cyschneck Nov 10, 2023
d82e236
Merge branch 'NCAR:main' into subset_tests_512
cyschneck Nov 17, 2023
54a3cc1
Merge branch 'NCAR:main' into subset_tests_512
cyschneck Nov 22, 2023
248749d
Merge branch 'NCAR:main' into subset_tests_512
cyschneck Nov 27, 2023
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
3 changes: 3 additions & 0 deletions .github/workflows/asv-benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: ASV Benchmarking

on:
push:
paths-ignore:
- "docs/**"
- "*.md"
branches:
- main
workflow_dispatch:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,32 @@ jobs:
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Check for all changed files
uses: tj-actions/changed-files@v40
id: changed-files
with:
since_last_remote_commit: true
fetch_depth: 0
files_ignore: docs/**

- name: List all non-documentation changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "non-documentation file $file was changed"
done

- name: Run Additional Tests
# only run additional tests if more files than just documentation have changed
run: |
echo "run all files: ${{ steps.changed-files.outputs.any_changed == 'true' }}"
# if: steps.changed-files.outputs.any_changed == 'true'

- name: checkout
uses: actions/checkout@v4
with:
token: ${{ github.token }}

- name: conda_setup
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Internal Changes
^^^^^^^^^^^^^^^^
* Remove unnecessary tag publish trigger for ASV benchmarking CI by `Anissa Zacharias`_ in (:pr:`509`)

Maintenance
^^^^^^^^^^^
* Run a subset of the testing suite when updating documentation by `Cora Schneck`_ in (:pr:`513`)

Bug Fixes
^^^^^^^^^
* Unpin xarray in enviroment builds with changes to interpolation.py (specify dims in xr.DataArray) and climatologies.py (replace loffset with to_offset) by `Cora Schneck`_ in (:pr:`492`)
Expand Down
Loading