Skip to content
Merged
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
42 changes: 36 additions & 6 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,49 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v10.3.2
with:
# uv caches wheels built from git by commit, not by what they were
# built against, so a restored cache could supply a p4p or pvxs
# wheel built against an older epicscorelibs
enable-cache: false

# pvxs, p4p and softioc each pin the epicscorelibs ABI they were built
# against. If they are built in isolated environments, those
# environments get the latest stable epicscorelibs from PyPI rather
# than master, and the pins then conflict with master as soon as its
# ABI version moves on. So build everything without isolation, in
# dependency order, against the master epicscorelibs, and repeat
# each git URL in later installs so it is never replaced from PyPI.
- name: Install master versions
env:
EPICSCORELIBS: git+https://github.com/epics-base/epicscorelibs.git
PVXS: git+https://github.com/epics-base/pvxs.git
P4P: git+https://github.com/epics-base/p4p.git
AIOCA: git+https://github.com/DiamondLightSource/aioca
COTHREAD: git+https://github.com/DiamondLightSource/cothread
run: |
uv venv
# Build requirements of all the packages below, plus epicscorelibs
uv pip install --pre setuptools setuptools_scm setuptools_dso \
git+https://github.com/epics-base/p4p.git \
git+https://github.com/epics-base/pvxs.git \
git+https://github.com/epics-base/epicscorelibs.git \
git+https://github.com/DiamondLightSource/aioca \
git+https://github.com/DiamondLightSource/cothread
# Build against the master epicscorelibs installed above
wheel numpy Cython "$EPICSCORELIBS"
# pvxs builds against epicscorelibs
uv pip install --pre --no-build-isolation "$EPICSCORELIBS" "$PVXS"
# p4p builds against epicscorelibs and pvxs
uv pip install --pre --no-build-isolation \
"$EPICSCORELIBS" "$PVXS" "$P4P" "$AIOCA" "$COTHREAD"
# softioc builds against epicscorelibs
uv pip install --no-build-isolation -e . --group dev
uv pip freeze

- name: Check master versions were not replaced
run: |
uv pip freeze | tee freeze.txt
for pkg in epicscorelibs pvxslibs p4p aioca cothread; do
grep -q "^$pkg @ git+" freeze.txt || {
echo "::error::$pkg is not installed from git master"
exit 1
}
done

- name: Run tests
run: uv run --no-sync pytest
Loading