-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (34 loc) · 975 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# .github/workflows/ci-cd.yml
on:
pull_request: {}
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
kedro_version: ["0.19.7", "0.19.8"]
steps:
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v3
id: setup-rye
with:
version: "0.42.0"
cache-prefix: ${{ matrix.python-version }}
- name: Pin python-version ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}
- name: Install dependencies
run: rye sync --no-lock
- name: Install kedro
run: rye add kedro==${{ matrix.kedro_version }}
- name: Lint code
run: rye lint
- name: Run tests
run: |
source .venv/bin/activate
rye test -- ./tests/unit
- name: Print Version Changes
run: |
source .venv/bin/activate
cz bump --dry-run