commit: a3bf5de79fb874ca5a1695abdb32250bcdc7166d
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sun Nov 30 23:02:52 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sun Nov 30 23:28:28 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=a3bf5de7
refactor(tests): do revdep check against last release of the revdep, not git
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
.github/workflows/test.yml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9e9ceed..2de61fe 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -70,11 +70,23 @@ jobs:
with:
path: snakeoil
- - name: Checkout ${{ matrix.repo }}
+ - name: Find last ${{ matrix.repo }} release
+ run: |
+ versions=$(git ls-remote -q --refs https://github.com/pkgcore/${{
matrix.repo }} | \
+ sed -nre 's:.*refs/tags/(.+)$:\1:p' | \
+ sort -V)
+ echo found versions:
+ echo "${versions}"
+ latest=$(echo "$versions" | tail -n 1)
+ echo "latest=${latest}"
+ [ -z "$latest" ] && { echo "failed finding the tag"; exit 1; }
+ echo "LATEST_TAG=$latest" >> $GITHUB_ENV
+ - name: Checkout ${{ matrix.repo }} ${{ env.LATEST_TAG }}
uses: actions/checkout@v4
with:
repository: pkgcore/${{ matrix.repo }}
path: ${{ matrix.repo }}
+ ref: ${{ env.LATEST_TAG }}
- name: Set up Python 3.13
uses: actions/setup-python@v5