Skip to content

Commit

Permalink
ci: clone all examples at once
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime authored and amaanq committed Feb 27, 2024
1 parent 64619c4 commit 22d3f87
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
include:
- examples:
- { repo: 'numpy/numpy', path: 'examples/numpy' }
- { repo: 'django/django', path: 'examples/django' }
- { repo: 'pallets/flask', path: 'examples/flask' }
- { repo: 'python/cpython', path: 'examples/python' }
steps:
- name: Set up the repo
uses: tree-sitter/[email protected]
with:
node-version: ${{vars.NODE_VERSION}}
- name: Set up examples
uses: actions/checkout@v4
with:
repository: ${{matrix.examples.repo}}
path: ${{matrix.examples.path}}
clean: false
run: |-
git clone https://github.com/numpy/numpy examples/numpy --depth=1 --filter=blob:none
git clone https://github.com/django/django examples/django --depth=1 --filter=blob:none
git clone https://github.com/pallets/flask examples/flask --depth=1 --filter=blob:none
git clone https://github.com/python/cpython examples/cpython --depth=1 --filter=blob:none
- name: Run tests
uses: tree-sitter/[email protected]
with:
lint: true
test-library: ${{runner.os == 'Linux'}}
examples: |
examples/examples/**/*.py
examples/**/*.py
!examples/cpython/Lib/test/badsyntax_3131.py
!examples/cpython/Lib/test/badsyntax_future8.py
!examples/cpython/Lib/test/test_compile.py
Expand Down

0 comments on commit 22d3f87

Please sign in to comment.