From 11aedaa7dc46a3e4f0b9523b9ff4043f60e5a999 Mon Sep 17 00:00:00 2001 From: Evan Bolyen Date: Thu, 21 Sep 2023 23:22:44 -0700 Subject: [PATCH] CI: use qiime2/distributions for release cycle (#161) --- .github/workflows/ci-dev.yaml | 12 ++++++++ .github/workflows/join-release.yaml | 6 ++++ .github/workflows/main.yml | 47 ----------------------------- .github/workflows/tag-release.yaml | 7 +++++ 4 files changed, 25 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/ci-dev.yaml create mode 100644 .github/workflows/join-release.yaml delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/tag-release.yaml diff --git a/.github/workflows/ci-dev.yaml b/.github/workflows/ci-dev.yaml new file mode 100644 index 0000000..cd494ea --- /dev/null +++ b/.github/workflows/ci-dev.yaml @@ -0,0 +1,12 @@ +# Example of workflow trigger for calling workflow (the client). +name: ci-dev +on: + pull_request: + branches: ["master"] + push: + branches: ["master"] +jobs: + ci: + uses: qiime2/distributions/.github/workflows/lib-ci-dev.yaml@dev + with: + distro: core diff --git a/.github/workflows/join-release.yaml b/.github/workflows/join-release.yaml new file mode 100644 index 0000000..8669749 --- /dev/null +++ b/.github/workflows/join-release.yaml @@ -0,0 +1,6 @@ +name: join-release +on: + workflow_dispatch: {} +jobs: + release: + uses: qiime2/distributions/.github/workflows/lib-join-release.yaml@dev \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3e23ac8..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: ci - -# build on every PR and commit to master -on: - pull_request: - branches: - - master - push: - branches: - - master - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: set up python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: install dependencies - run: python -m pip install --upgrade pip - - name: lint - run: | - pip install -q https://github.com/qiime2/q2lint/archive/master.zip - q2lint - pip install -q flake8 - flake8 - - build-and-test: - needs: lint - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - with: - # necessary for versioneer - fetch-depth: 0 - # TODO: update this to @v1 when it lands - - uses: qiime2/action-library-packaging@alpha1 - with: - package-name: rescript - additional-tests: pytest --pyargs rescript - build-target: dev - library-token: ${{ secrets.LIBRARY_TOKEN }} diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml new file mode 100644 index 0000000..8b0f228 --- /dev/null +++ b/.github/workflows/tag-release.yaml @@ -0,0 +1,7 @@ +name: tag-release +on: + push: + branches: ["Release-*"] +jobs: + tag: + uses: qiime2/distributions/.github/workflows/lib-tag-release.yaml@dev \ No newline at end of file