Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhangxyz committed Aug 18, 2023
1 parent 8da17f0 commit 5174ab2
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: build
on: [push, pull_request]

jobs:
basic_test:
name: basic test except svd and qr
test_TAT_hpp:
name: test TAT.hpp except svd and qr
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"

Expand All @@ -22,10 +22,27 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: ctest -E ^test_\(svd\|qr\)$ -j 2

test_lazy_py:
name: test lazy.py
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: install pytest
run: pip install pytest pytest-cov
- name: run test
working-directory: ${{github.workspace}}/lazy_graph
run: pytest --cov=lazy --cov-fail-under=100

build_wheels_trigger:
name: trigger for building wheels
runs-on: ubuntu-latest
needs: basic_test
needs: [test_TAT_hpp, test_lazy_py]
if: "github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || contains(toJSON(github.event.commits.*.message), '[force ci]'))"
steps:
- name: nothing
Expand Down

0 comments on commit 5174ab2

Please sign in to comment.