ci: It's 'cache mmtf' not 'Cache PyQt' #704
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rebuild on change | |
on: push | |
jobs: | |
build-and-test-rocky8-docker: | |
runs-on: ubuntu-20.04 | |
container: | |
image: rockylinux:8 | |
env: | |
SHELL: /bin/bash | |
PATH: /usr/bin:/usr/sbin:/bin:/sbin | |
steps: | |
- run: export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 | |
- run: dnf update -y | |
- run: dnf install -y git-all | |
- uses: actions/checkout@v4 | |
# buildinfo.py breaks without this | |
- run: chown -R $(id -u):$(id -g) $PWD | |
- run: ${PWD}/utils/set_up_centos.sh | |
- name: Fetch Python | |
uses: ./utils/ci/cache_python | |
with: | |
platform: linux | |
architecture: x86_64 | |
- name: Fetch PyQt6 and PyQt6-WebEngine from Plato | |
uses: ./utils/ci/cache_pyqt | |
with: | |
platform: linux | |
architecture: x86_64 | |
cache_key: ${{ secrets.PREBUILT_CACHE_SECRET }} | |
- name: Fetch mmtf sources from Plato | |
uses: ./utils/ci/cache_mmtf | |
- name: Fetch holoplaycore sources from Plato | |
uses: ./utils/ci/cache_lookingglass | |
- name: Fetch seggerx sources from Plato | |
uses: ./utils/ci/cache_seggerx | |
- name: Fetch Ambertools | |
uses: ./utils/ci/cache_ambertools | |
with: | |
platform: linux | |
architecture: x86_64 | |
- name: Fetch Plato pips | |
uses: ./utils/ci/cache_pips | |
with: | |
platform: linux | |
architecture: x86_64 | |
- run: source /opt/rh/gcc-toolset-10/enable && MAKEOPTS="-j$(nproc)" make -j$(nproc) -f Makefile.centos build-minimal | |
- name: Run the legacy test suite | |
run: make test | |
- name: Install Pytest | |
run: ./ChimeraX.app/bin/python3.11 -I -m pip install pytest pytest-cov | |
- name: Set up the repo for coverage reporting | |
run: make prepare-coverage | |
- name: Check whether ChimeraX.exe and python -m chimerax.core are equivalent | |
run: USE_COVERAGE=1 make pytest-both-exes | |
- name: Run wheel tests | |
run: USE_COVERAGE=1 make pytest-wheel | |
- name: Run distribution tests | |
run: USE_COVERAGE=1 make pytest-app | |
- name: Report coverage | |
run: make report-coverage | |
build-and-test-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- uses: actions/checkout@v4 | |
- run: ${PWD}/utils/set_up_macos.sh | |
- name: Fetch Python | |
uses: ./utils/ci/cache_python | |
with: | |
platform: macos | |
architecture: x86_64 | |
- name: Fetch PyQt6 and PyQt6-WebEngine from Plato | |
uses: ./utils/ci/cache_pyqt | |
with: | |
platform: macos | |
architecture: universal2 | |
cache_key: ${{ secrets.PREBUILT_CACHE_SECRET }} | |
- name: Fetch mmtf sources from Plato | |
uses: ./utils/ci/cache_mmtf | |
- name: Fetch holoplaycore sources from Plato | |
uses: ./utils/ci/cache_lookingglass | |
- name: Fetch seggerx sources from Plato | |
uses: ./utils/ci/cache_seggerx | |
- name: Fetch Ambertools | |
uses: ./utils/ci/cache_ambertools | |
with: | |
platform: macos | |
architecture: x86_64 | |
- name: Fetch Plato pips | |
uses: ./utils/ci/cache_pips | |
with: | |
platform: macos | |
architecture: universal2 | |
- run: MAKEOPTS="-j$(sysctl -n hw.logicalcpu)" make -j$(sysctl -n hw.logicalcpu) build-minimal | |
- name: Run the legacy test suite | |
run: make test | |
- name: Install Pytest | |
run: ./ChimeraX.app/Contents/bin/python3.11 -I -m pip install pytest pytest-cov | |
- name: Set up the repo for coverage reporting | |
run: make prepare-coverage | |
- name: Check whether ChimeraX.exe and python -m chimerax.core are equivalent | |
run: USE_COVERAGE=1 make pytest-both-exes | |
- name: Run wheel tests | |
run: USE_COVERAGE=1 make pytest-wheel | |
- name: Run distribution tests | |
run: USE_COVERAGE=1 make pytest-app | |
- name: Report coverage | |
run: make report-coverage | |
build-and-test-windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: git mingw-w64-x86_64-imagemagick mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-objc mingw-w64-x86_64-gcc-fortran rsync patch unzip openssh make mingw-w64-x86_64-autotools | |
- name: Fetch Python | |
uses: ./utils/ci/cache_python | |
with: | |
platform: windows | |
architecture: x86_64 | |
- name: Fetch PyQt6 and PyQt6-WebEngine from Plato | |
uses: ./utils/ci/cache_pyqt | |
with: | |
platform: windows | |
architecture: x86 | |
cache_key: ${{ secrets.PREBUILT_CACHE_SECRET }} | |
- name: Fetch mmtf sources from Plato | |
uses: ./utils/ci/cache_mmtf | |
- name: Fetch holoplaycore sources from Plato | |
uses: ./utils/ci/cache_lookingglass | |
- name: Fetch seggerx sources from Plato | |
uses: ./utils/ci/cache_seggerx | |
- name: Fetch Ambertools | |
uses: ./utils/ci/cache_ambertools | |
with: | |
platform: windows | |
architecture: x86_64 | |
- name: Fetch Plato pips | |
uses: ./utils/ci/cache_pips | |
with: | |
platform: windows | |
architecture: x86 | |
- run: AUTOMATIC_DISCOVERY=1 . ./vsvars.sh && MAKEOPTS="-j$(nproc)" make -j$(nproc) build-minimal | |
- name: Run the legacy test suite | |
run: AUTOMATIC_DISCOVERY=1 . ./vsvars.sh && make test | |
- name: Install Pytest | |
run: ./ChimeraX.app/bin/python.exe -I -m pip install pytest pytest-cov | |
- name: Set up the repo for coverage reporting | |
run: make prepare-coverage | |
- name: Check whether ChimeraX.exe and python -m chimerax.core are equivalent | |
run: USE_COVERAGE=1 make pytest-both-exes | |
- name: Run wheel tests | |
run: USE_COVERAGE=1 make pytest-wheel | |
- name: Run distribution tests | |
run: USE_COVERAGE=1 make pytest-app | |
- name: Report coverage | |
run: make report-coverage |