rosie: re-enable Rosie Disco service #64
Workflow file for this run
This file contains hidden or 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: Build | |
| # build the project whenever the configuration is changed | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'README.md' # check markdown is valid | |
| - 'MANIFEST.in' # check packaging | |
| - 'pyproject.toml' # check deps and project config | |
| - '.gitignore' | |
| - '.github/workflows/build.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| env: | |
| FORCE_COLOR: 2 | |
| PIP_PROGRESS_BAR: off | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest', 'macos-latest'] | |
| python: ['3.12', '3'] | |
| exclude: | |
| - os: 'macos-latest' | |
| python: '3.12' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| # NOTE: Need to install these deps with "apt-get" as the build will | |
| # proceed with "pip" and pygobject doesn't seem to locate Conda | |
| # installed cairo. | |
| # NOTE: Mac OS already has required deps pre-installed. | |
| - name: Install Ubuntu dependencies | |
| if: startsWith(matrix.os, 'ubuntu') | |
| run: | | |
| sudo apt-get update | |
| sudo apt install -y \ | |
| libgirepository-2.0-dev \ | |
| libcairo2-dev \ | |
| pkg-config \ | |
| gir1.2-gtk-3.0 | |
| - name: Install Python | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| cache-environment: true | |
| post-cleanup: 'all' | |
| environment-name: rose-build | |
| init-shell: bash | |
| create-args: >- | |
| python=${{ matrix.python }} | |
| - name: Build | |
| uses: cylc/release-actions/build-python-package@v1 | |
| with: | |
| optional-deps: '[graph,edit,rosa]' | |
| - name: Inspect | |
| run: | | |
| unzip -l dist/*.whl | tee files | |
| grep -E 'metomi_rose.*.dist-info/.*COPYING' files | |
| grep 'metomi/rose/etc' files | |
| grep 'metomi/rosie/lib' files | |
| grep 'metomi/rose/scripts' files | |
| # grep 'metomi/rose/py.typed' files # TODO |