-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (39 loc) · 1.08 KB
/
ci.yaml
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
36
37
38
39
---
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch: [x64]
os: [ubuntu-22.04]
python-version: [3.10.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up poetry
run: pipx install poetry
- name: Set up python
uses: actions/setup-python@v4
with:
cache: poetry
architecture: ${{ matrix.arch }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
poetry install --with=test
- name: Check if `prefect build` works
run: |
poetry run prefect build
- name: Get changed files for code tree analysis
id: files
uses: Ana06/[email protected]
- name: Perform code tree analysis
id: code-tree-analysis
continue-on-error: true
run: |
poetry run python .github/workflows/scripts/code_tree_analysis.py "${{ steps.files.outputs.all }}"