Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use GHA instead of zeus #286

Merged
merged 1 commit into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
---
minVersion: "0.9.0"
minVersion: "0.13.2"
github:
owner: getsentry
repo: symbolic
changelogPolicy: auto

statusProvider:
name: github
artifactProvider:
name: github

preReleaseCommand: bash scripts/bump-version
targets:
- name: crates
- name: pypi
- name: github
changelogPolicy: simple
requireNames:
- /^symbolic-.*-py2.py3-none-macosx_10_15_x86_64.whl$/
- /^symbolic-.*-py2.py3-none-manylinux2010_i686.whl$/
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
python-version: 3.7

- uses: Swatinem/rust-cache@v1
with:
key: lints
Swatinem marked this conversation as resolved.
Show resolved Hide resolved

- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -69,8 +67,6 @@ jobs:
override: true

- uses: Swatinem/rust-cache@v1
with:
key: test-rust

- name: Run cargo test
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -106,7 +102,5 @@ jobs:
python-version: 3.7

- uses: Swatinem/rust-cache@v1
with:
key: test-python

- run: make test-python
42 changes: 12 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ jobs:

- run: make wheel SYMBOLIC_PYTHON=python2

- uses: actions/setup-node@v1

- name: Upload to Zeus
env:
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
run: |
npm install -D @zeus-ci/cli
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --ref ${{ github.sha }}
npx zeus upload --build ${{ github.run_id }} --job ${{ github.job }} --type "application/zip+wheel" py/dist/*
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --status passed
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*

python-wheel-linux:
strategy:
Expand All @@ -61,16 +55,10 @@ jobs:
- name: Build in Docker
run: make wheel-manylinux IMAGE=quay.io/pypa/manylinux2010_${{ matrix.build-arch }}

- uses: actions/setup-node@v1

- name: Upload to Zeus
env:
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
run: |
npm install -D @zeus-ci/cli
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --ref ${{ github.sha }}
npx zeus upload --build ${{ github.run_id }} --job ${{ github.job }} --type "application/zip+wheel" py/dist/*
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --status passed
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*

sdist:
name: Python sdist
Expand All @@ -85,13 +73,7 @@ jobs:

- run: make sdist

- uses: actions/setup-node@v1

- name: Upload to Zeus
env:
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
run: |
npm install -D @zeus-ci/cli
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --ref ${{ github.sha }}
npx zeus upload --build ${{ github.run_id }} --job ${{ github.job }} --type "application/zip+wheel" py/dist/*
npx zeus job update --build ${{ github.run_id }} --job ${{ github.job }} --status passed
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*