Skip to content

Commit

Permalink
Merge branch 'master' into fix/ppdb-id
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Jan 13, 2023
2 parents a0cf90e + bad5cb8 commit 2908e20
Show file tree
Hide file tree
Showing 143 changed files with 7,488 additions and 4,566 deletions.
9 changes: 5 additions & 4 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
minVersion: "0.13.2"
minVersion: "0.34.1"
github:
owner: getsentry
repo: symbolic
Expand All @@ -14,10 +14,11 @@ targets:
- name: crates
- name: pypi
- name: github
- name: sentry-pypi
internalPypiRepo: getsentry/pypi
requireNames:
- /^symbolic-.*-py2.py3-none-macosx_10_15_x86_64.whl$/
- /^symbolic-.*-py2.py3-none-macosx_11_0_arm64.whl$/
- /^symbolic-.*-py2\.py3-none-.*manylinux2010_i686.*\.whl$/
- /^symbolic-.*-py2\.py3-none-.*manylinux2010_x86_64\.whl$/
- /^symbolic-.*-py2\.py3-none-.*manylinux2014_aarch64\.whl$/
- /^symbolic-.*-py2.py3-none-manylinux_2_28_aarch64.whl$/
- /^symbolic-.*-py2.py3-none-manylinux_2_28_x86_64.whl$/
- /^symbolic-.*.zip$/
53 changes: 22 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- "release/**"

env:
MANYLINUX_VERSION: manylinux_2_28

jobs:
python-wheel-mac:
strategy:
Expand All @@ -22,18 +25,11 @@ jobs:
runs-on: macos-${{ matrix.macos-version }}

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }} --no-self-update

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.6

Expand All @@ -42,7 +38,7 @@ jobs:
# consumed by cargo and setup.py to obtain the target dir
CARGO_BUILD_TARGET: ${{ matrix.target }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3.1.1
with:
name: ${{ github.sha }}
path: py/dist/*
Expand All @@ -52,27 +48,24 @@ jobs:
fail-fast: false
matrix:
build-arch:
- manylinux2010_i686
- manylinux2010_x86_64
- manylinux2014_aarch64
- x86_64
- aarch64

name: Python Linux ${{ matrix.build-arch }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- if: matrix.build-arch == 'manylinux2014_aarch64'
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Build in Docker
run: make wheel-manylinux IMAGE=quay.io/pypa/${{ matrix.build-arch }}
- if: matrix.build-arch == 'aarch64'
name: Build in Docker (aarch64)
run: make wheel-manylinux-aarch64 IMAGE=messense/"$MANYLINUX_VERSION"-cross:aarch64-amd64

- if: matrix.build-arch == 'x86_64'
name: Build in Docker (x86_64)
run: make wheel-manylinux IMAGE=quay.io/pypa/"$MANYLINUX_VERSION"_x86_64

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3.1.1
with:
name: ${{ github.sha }}
path: py/dist/*
Expand All @@ -82,17 +75,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 2.7
python-version: 3.7

- run: make sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3.1.1
with:
name: ${{ github.sha }}
path: py/dist/*
114 changes: 31 additions & 83 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- run: make style-python

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --workspace --all-targets -- -D clippy::all
run: cargo clippy --all-features --workspace --tests --examples -- -D clippy::all

- run: make lint-python

Expand All @@ -55,23 +42,13 @@ jobs:
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rust-docs
- run: rustup toolchain install stable --profile minimal --component rust-docs --no-self-update

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- uses: actions-rs/cargo@v1
with:
command: doc
args: --workspace --all-features --no-deps
- run: cargo doc --workspace --all-features --document-private-items --no-deps

test-rust:
strategy:
Expand All @@ -83,23 +60,14 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc

test-python:
strategy:
Expand All @@ -114,21 +82,15 @@ jobs:
SYMBOLIC_DEBUG: 1

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- run: make test-python

Expand All @@ -143,46 +105,32 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup toolchain install stable --profile minimal --no-self-update

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- uses: actions-rs/cargo@v1
with:
command: install
args: cbindgen
- run: cargo install cbindgen

- run: cd symbolic-cabi && make test

codecov:
name: Code Coverage
runs-on: ubuntu-latest
continue-on-error: true # well, its nightly and highly experimental

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: llvm-tools-preview
override: true
- name: Install rust stable toolchain
run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- uses: Swatinem/fucov@v1
with:
args: --workspace --all-features
- uses: taiki-e/install-action@cargo-llvm-cov

- run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649
with:
directory: coverage
files: lcov.info
9 changes: 9 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Danger

on:
pull_request:
types: [opened, synchronize, reopened, edited, ready_for_review]

jobs:
danger:
uses: getsentry/github-workflows/.github/workflows/danger.yml@v2
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_RELEASE_PAT }}
fetch-depth: 0

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- run: rustup toolchain install stable --profile minimal --no-self-update

- name: Prepare release
uses: getsentry/action-prepare-release@v1
Expand Down
28 changes: 10 additions & 18 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: clippy
- name: Install rust stable toolchain
run: |
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy --no-self-update
rustup default ${{ matrix.rust }}
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --workspace --tests --examples -- -D clippy::all
- run: cargo clippy --all-features --workspace --tests --examples -- -D clippy::all

- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc

weekly-audit:
name: Audit
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# FIXME: find a maintained alternative to audit-check
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 2908e20

Please sign in to comment.