Skip to content

Commit 527e8f8

Browse files
committed
correct GH revdep tests so it's actually using pkgcore master
GH pip caching is extremely aggressive, and rather than testing against 0.12.33 (our last release), it's been testing against fricking 0.12.30 Due to the seperated pip calls, the pkgdev/pkgcheck specification allowed pip to do this. Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent 18200e4 commit 527e8f8

1 file changed

Lines changed: 6 additions & 47 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -89,56 +89,15 @@ jobs:
8989
continue-on-error: true
9090
strategy:
9191
matrix:
92-
repo: ['pkgcheck', 'pkgdev']
92+
target: ['pkgcheck', 'pkgdev']
93+
use_last_release: [False, True]
94+
fail-fast: false
9395
steps:
94-
- name: Checkout pkgcore
95-
uses: pkgcore/gh-actions/get-source@main
96+
- uses: pkgcore/gh-actions/test-revdep@main
9697
with:
98+
target: ${{ matrix.target }}
99+
use_last_release: ${{ matrix.use_last_release && 'yes' || '' }}
97100
artifact-id: ${{ inputs.release-artifact-id }}
98-
path: pkgcore
99-
100-
- name: Install bash 5.3
101-
uses: pkgcore/gh-actions/bash-5.3@main
102-
103-
- name: Find last ${{ matrix.repo }} release
104-
run: |
105-
versions=$(git ls-remote -q --refs https://github.com/pkgcore/${{ matrix.repo }} | \
106-
sed -nre 's:.*refs/tags/(.+)$:\1:p' | \
107-
sort -V)
108-
echo found versions:
109-
echo "${versions}"
110-
latest=$(echo "$versions" | tail -n 1)
111-
echo "latest=${latest}"
112-
[ -z "$latest" ] && { echo "failed finding the tag"; exit 1; }
113-
echo "LATEST_TAG=$latest" >> $GITHUB_ENV
114-
115-
- name: Checkout ${{ matrix.repo }} ${{ env.LATEST_TAG }}
116-
uses: actions/checkout@v5
117-
with:
118-
repository: pkgcore/${{ matrix.repo }}
119-
path: ${{ matrix.repo }}
120-
ref: refs/tags/${{ env.LATEST_TAG }}
121-
122-
- name: Set up Python 3.13
123-
uses: actions/setup-python@v5
124-
with:
125-
python-version: '3.13'
126-
cache: 'pip'
127-
cache-dependency-path: |
128-
pkgcore/pyproject.toml
129-
${{ matrix.repo }}/pyproject.toml
130-
131-
- name: Install pip dependencies
132-
run: |
133-
python -m pip install --upgrade pip
134-
pip install --upgrade "./pkgcore"
135-
pip install --upgrade "./${{ matrix.repo }}[test]"
136-
137-
- name: Test with pytest
138-
working-directory: ./${{ matrix.repo }}
139-
env:
140-
PY_COLORS: 1 # forcibly enable pytest colors
141-
run: pytest -v
142101

143102
lint:
144103
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)