Skip to content

Commit

Permalink
add alluxiocommon directly in current test job
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyge2022 committed Apr 26, 2024
1 parent 647e3ea commit 3e7c7ae
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
# strategy:
# fail-fase: false
# steps:
# - name: Checkout source
# - uses: actions/checkout@v4
#
# - name: Setup python
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# python-version: '3.8'
#
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
Expand Down Expand Up @@ -53,7 +57,6 @@ jobs:
# cd /root/github/alluxiofs/rust/alluxiocommon && pytest

test:
# needs: alluxiocommon
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -80,10 +83,30 @@ jobs:
conda list
conda --version
# alluxiocommon related
- name: Build alluxiocommon wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ runs-on }}
args: --release --out dist --find-interpreter --manifest-path rust/alluxiocommon/Cargo.toml
sccache: 'true'
manylinux: auto

- name: Install dependencies
run: |
pip install .[tests]
- name: Run AlluxioCommon tests
shell: bash
run: |
set -e
pip install alluxiocommon --find-links dist --force-reinstall
pip install pytest
pytest -vv \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%H:%M:%S" \
rust/alluxiocommon/tests/
- name: Run Alluxio FileSystem tests
run: |
pytest -vv \
Expand Down

0 comments on commit 3e7c7ae

Please sign in to comment.