Skip to content

Commit

Permalink
Merge 5f74014 into 0d7647f
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Feb 26, 2024
2 parents 0d7647f + 5f74014 commit 5062fc4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- name: Install Dependencies
run: |
set -vxeuo pipefail
python -m pip install --upgrade pip
pip install flake8
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:

- name: Unpack
run: |
set -vxeuo pipefail
which databroker-pack
which databroker-unpack
cd resources
Expand All @@ -78,11 +80,13 @@ jobs:
- name: Directory Listings
run: |
set -vxeuo pipefail
ls -lAFghR ~/.local/
ls -lAFghR /tmp/*_test/
- name: Prepare archival content
run: |
set -vxeuo pipefail
mkdir -p ~/databroker_catalogs/
mv ~/.local ~/databroker_catalogs/
mv /tmp/*_test ~/databroker_catalogs/
Expand Down Expand Up @@ -127,6 +131,7 @@ jobs:
- name: Initial diagnostics
run: |
set -vxeuo pipefail
micromamba info
micromamba list
conda config --show-sources
Expand All @@ -139,6 +144,7 @@ jobs:

- name: Start EPICS IOCs in Docker
run: |
set -vxeuo pipefail
bash ./.github/scripts/iocmgr.sh start GP gp
bash ./.github/scripts/iocmgr.sh start ADSIM ad
docker ps -a
Expand All @@ -151,6 +157,7 @@ jobs:
- name: Confirm EPICS IOC is available via caget
shell: bash -l {0}
run: |
set -vxeuo pipefail
docker exec iocgp grep float1 /home/iocgp/dbl-all.txt
docker exec iocgp /opt/base/bin/linux-x86_64/caget gp:UPTIME gp:gp:float1
docker exec iocad /opt/base/bin/linux-x86_64/caget ad:cam1:Acquire_RBV
Expand Down Expand Up @@ -182,13 +189,15 @@ jobs:

- name: Restore archival content
run: |
set -vxeuo pipefail
mkdir -p ~/.local/share/intake
mv ~/databroker_catalogs/.local/share/intake/* ~/.local/share/intake
mv ~/databroker_catalogs/*_test /tmp/
- name: Diagnostics
shell: bash -l {0}
run: |
set -vxeuo pipefail
df -HT
micromamba list
Expand All @@ -199,14 +208,15 @@ jobs:
- name: Run tests with pytest & coverage
shell: bash -l {0}
run: |
# set -vxeuo pipefail
set -vxeuo pipefail
coverage run --concurrency=thread --parallel-mode -m pytest -vvv --exitfirst .
coverage combine
coverage report --precision 3
- name: Upload coverage data to coveralls.io
shell: bash -l {0}
run: |
set -vxeuo pipefail
micromamba list coveralls
which coveralls
coveralls debug
Expand All @@ -226,6 +236,7 @@ jobs:
steps:
- name: Gather coverage and report to Coveralls
run: |
set -vxeuo pipefail
echo "Finally!"
pip3 install --upgrade coveralls
# debug mode: output prepared json and reported files list to stdout
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Install pandoc
run: |
set -vxeuo pipefail
sudo apt-get update && \
sudo apt-get -y install pandoc
Expand Down Expand Up @@ -80,6 +81,7 @@ jobs:
- name: Re-build the master directory (contains all documentation versions)
run: |
set -vxeuo pipefail
cp .github/index.html "${TMP_DIR}"
cd "${TMP_DIR}"
Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
- name: Info
run: |
set -vxeuo pipefail
cd "${TMP_DIR}"
echo "pwd=$(pwd)"
ls -laFGh
Expand Down

0 comments on commit 5062fc4

Please sign in to comment.