Skip to content

Commit

Permalink
Split CI python build for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Mar 13, 2021
1 parent 5d37641 commit 516f466
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: CI
on:
push:
branches-ignore:
- "gh-pages"
branches:
- main
- "renovate/**"
pull_request:
jobs:
test_js:
Expand All @@ -25,25 +26,30 @@ jobs:
- run: npm run lint
- run: npm --prefix website run build
test_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install $(cat requirements.txt | grep pytest)
- run: make test-coverage
- run: make lint
- run: make benchmark
- run: cd website; python build_rules.py
test_python_compat:
needs: test_python
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python: 3.6
- python: 3.7
- python: 3.8
- python: 3.9
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- run: make test-coverage
- run: |
make lint
make benchmark
cd website; python build_rules.py
if: ${{ matrix.python == '3.9' }}
- run: pip install -r requirements.txt
- run: make test

0 comments on commit 516f466

Please sign in to comment.