Skip to content

Commit 970f0d9

Browse files
Add installation from Github for upstream packages
This should allow us to spot upcoming issues before releases are made
1 parent 35bb833 commit 970f0d9

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

.github/workflows/code.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
os: [ubuntu-latest, windows-latest, macos-13]
5757
python: [cp37, cp38, cp39, cp310, cp311, cp312]
5858

59-
6059
include:
6160
# Put coverage and results files in the project directory for mac
6261
- os: macos-13
@@ -124,9 +123,7 @@ jobs:
124123
matrix:
125124
os: [ubuntu-latest, windows-latest, macos-13]
126125
python: [cp37, cp38, cp39, cp310, cp311, cp312]
127-
128126
runs-on: ${{ matrix.os }}
129-
130127
steps:
131128
- uses: actions/download-artifact@v4
132129
with:
@@ -163,3 +160,32 @@ jobs:
163160
TWINE_USERNAME: __token__
164161
TWINE_PASSWORD: ${{ secrets.pypi_token }}
165162
run: pipx run twine upload dist/*
163+
164+
# Check that the master branches of various upstream dependencies are
165+
# still compatible when used together
166+
master_branch_test:
167+
runs-on: "ubuntu-latest"
168+
# TODO: Add if == scheduled run
169+
steps:
170+
- name: Checkout Source
171+
uses: actions/checkout@v4
172+
with:
173+
# require history to get back to last tag for version number of branches
174+
fetch-depth: 0
175+
submodules: true
176+
177+
- name: Install Python
178+
uses: actions/setup-python@v4
179+
with:
180+
python-version: "3.12"
181+
182+
- name: Install master versions
183+
# Note the install order here: By installing p4p first, then pvxs and epicscorelibs using the --no-warn-conflicts
184+
# flag, we can bypass the dependency mismatch which would otherwise be present. We know that the master branches
185+
# *should* always work together, so it's ok to ignore the warnings.
186+
run: |
187+
pip install git+https://github.com/epics-base/p4p.git
188+
pip install --no-warn-conflicts git+https://github.com/epics-base/pvxs.git git+https://github.com/epics-base/epicscorelibs.git
189+
pip install -e .[dev]
190+
pip freeze
191+
python -m pytest

0 commit comments

Comments
 (0)