Skip to content

Commit

Permalink
Merge #1241
Browse files Browse the repository at this point in the history
1241: CI: Add Pyston test job r=messense a=messense

Regression test for #1232

Co-authored-by: messense <messense@icloud.com>
  • Loading branch information
bors[bot] and messense authored Nov 2, 2022
2 parents ea5622a + f60f3c2 commit 30c641c
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,41 @@ jobs:
# Caching
- name: Cache cargo build
uses: Swatinem/rust-cache@v2
with:
key: msrv
- name: cargo build
run: cargo build --all

test-pyston:
name: Test Pyston
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
container: pyston/pyston:2.3.5
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
id: rustup
with:
targets: wasm32-wasi
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Install python packages
run: pip install virtualenv cffi
# Caching
- name: Cache cargo build
uses: Swatinem/rust-cache@v2
with:
shared-key: maturin-build
- name: Cache test crates cargo build
uses: actions/cache@v3
with:
path: test-crates/targets
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.cachekey }}-pyston-${{ hashFiles('test-crates/*/Cargo.lock') }}
- name: cargo test
env:
MATURIN_TEST_PYTHON: pyston
run: |
# unset GITHUB_ACTIONS env var to disable zig and conda related tests
env -u GITHUB_ACTIONS cargo nextest run --features password-storage
check:
name: Check ${{ matrix.platform.target }}
strategy:
Expand All @@ -500,12 +530,14 @@ jobs:
conclusion:
needs:
- test
- test-emscripten
- test-alpine
- test-auditwheel
- test-docker
- test-cross-compile
- test-bootstrap
- test-msrv
- test-pyston
- check
if: always()
runs-on: ubuntu-latest
Expand Down

0 comments on commit 30c641c

Please sign in to comment.