Skip to content

Commit

Permalink
Merge pull request #29 from lsst-sqre/tickets/DM-42135
Browse files Browse the repository at this point in the history
tickets/DM-42135: get GH workflows working again
  • Loading branch information
athornton committed Dec 13, 2023
2 parents 3b137c3 + b1b4d54 commit 6150abf
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 189 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/check-release.yml

This file was deleted.

50 changes: 45 additions & 5 deletions .github/workflows/build.yml → .github/workflows/ci.yaml
@@ -1,12 +1,26 @@
name: Build
name: CI

on:
"on":
merge_group: {}
pull_request: {}
push:
branches: main
pull_request:
branches: '*'
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- "dependabot/**"
- "gh-readonly-queue/**"
- "renovate/**"
- "tickets/**"
- "u/**"
tags:
- "*"
release:
types: [published]

jobs:

build:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -154,3 +168,29 @@ jobs:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1

pypi:

# This job requires set up:
# 1. Set up a trusted publisher for PyPI
# 2. Set up a "pypi" environment in the repository
# See https://github.com/lsst-sqre/build-and-publish-to-pypi
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [build, test_isolated, integration-tests, check_links]
environment:
name: pypi
url: https://pypi.org/p/rsp-jupyter-extensions
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history for setuptools_scm

- name: Build and publish
uses: lsst-sqre/build-and-publish-to-pypi@v2
with:
python-version: "3.11"
33 changes: 33 additions & 0 deletions .github/workflows/dependencies.yaml
@@ -0,0 +1,33 @@
name: Dependency Update

"on":
schedule:
- cron: "0 12 * * 1"
workflow_dispatch: {}

jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Run neophile
uses: lsst-sqre/run-neophile@v1
with:
python-version: "3.11"
mode: pr
types: pre-commit
app-id: ${{ secrets.NEOPHILE_APP_ID }}
app-secret: ${{ secrets.NEOPHILE_PRIVATE_KEY }}

- name: Report status
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "Periodic dependency update for {repo} failed"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }}
13 changes: 0 additions & 13 deletions .github/workflows/enforce-label.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/prep-release.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/publish-release.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/update-integration-tests.yml

This file was deleted.

0 comments on commit 6150abf

Please sign in to comment.