From cb4df32976889baaa721ce2d19da4d30d5ce4218 Mon Sep 17 00:00:00 2001 From: Jim Albright <37345113+albrja@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:38:12 -0700 Subject: [PATCH] Albrja/Mic-5267/build-from-vbu (#117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Albrja/Mic-5267/build-from-vbu Build from reusable workflow - *Category*: CI - *JIRA issue*: https://jira.ihme.washington.edu/browse/MIC-5267 ### Changes and notes ### Testing --- .github/workflows/build.yml | 71 ++++++------------------------------- 1 file changed, 10 insertions(+), 61 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49048f7..1015b60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,66 +7,15 @@ on: push: pull_request: workflow_dispatch: - schedule: + schedule: - cron: "0 8 * * *" - + jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Print environment values - run: | - python --version - cat $GITHUB_ENV - - name: Update pip - run: | - python -m pip install --upgrade pip - - name: Install dependencies - run: | - pip install .[test,docs] - - name: Lint - run: | - pip install black==22.3.0 isort - black . --check --diff - isort . --check --verbose --only-modified --diff - - name: Test - run: | - if "${{ github.event_name == 'schedule' }}"; then - pytest --runslow ./tests - else - pytest ./tests - fi - - name: Doc build - run: | - make html -C docs/ SPHINXOPTS="-W --keep-going -n" - - name: Doctest - run: | - make doctest -C docs/ - - name: Send mail - # Notify when cron job fails - if: (github.event_name == 'schedule' && failure()) - uses: dawidd6/action-send-mail@v2 - with: - # mail server settings - server_address: smtp.gmail.com - server_port: 465 - # user credentials - username: ${{ secrets.NOTIFY_EMAIL }} - password: ${{ secrets.NOTIFY_PASSWORD }} - # email subject - subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }} - # email body as text - body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }} - # comma-separated string, send email to - to: uw_ihme_simulationscience@uw.edu - # from email name - from: Vivarium Notifications - \ No newline at end of file + call_build: + uses: + ihmeuw/vivarium_build_utils/.github/workflows/build.yml@main + with: + # FIXME: We can't clone gbd access but the install branch script should handle that + dependencies: "vivarium_gbd_access" + use_mypy: false + install_type: "test,docs"