|
1 | 1 | name: Flag Engine Pull Request |
2 | 2 |
|
3 | 3 | on: |
4 | | - pull_request: |
5 | | - types: [opened, synchronize, reopened, ready_for_review] |
6 | | - branches: |
7 | | - - main |
8 | | - - release** |
| 4 | + pull_request: |
| 5 | + types: [opened, synchronize, reopened, ready_for_review] |
| 6 | + branches: |
| 7 | + - main |
| 8 | + - release** |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - test: |
12 | | - runs-on: ubuntu-latest |
13 | | - name: Flag engine Unit tests |
14 | | - |
15 | | - strategy: |
16 | | - max-parallel: 4 |
17 | | - matrix: |
18 | | - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
19 | | - |
20 | | - steps: |
21 | | - - name: Cloning repo |
22 | | - uses: actions/checkout@v4 |
23 | | - with: |
24 | | - fetch-depth: 0 |
25 | | - submodules: recursive |
26 | | - |
27 | | - - name: Set up Python ${{ matrix.python-version }} |
28 | | - uses: actions/setup-python@v5 |
29 | | - with: |
30 | | - python-version: ${{ matrix.python-version }} |
31 | | - |
32 | | - - name: Install Dependencies |
33 | | - run: | |
34 | | - python -m pip install --upgrade pip |
35 | | - pip install -r requirements.txt -r requirements-dev.txt |
36 | | -
|
37 | | - - name: Check Formatting |
38 | | - run: black --check . |
39 | | - |
40 | | - - name: Check Imports |
41 | | - run: | |
42 | | - git ls-files | grep '\.py$' | xargs absolufy-imports |
43 | | - isort . --check |
44 | | -
|
45 | | - - name: Check flake8 linting |
46 | | - run: flake8 . |
47 | | - |
48 | | - - name: Check Typing |
49 | | - run: mypy --strict . |
50 | | - |
51 | | - - name: Run Tests |
52 | | - run: pytest -p no:warnings |
53 | | - |
54 | | - - name: Check Coverage |
55 | | - uses: 5monkeys/cobertura-action@v14 |
56 | | - with: |
57 | | - minimum_coverage: 100 |
58 | | - fail_below_threshold: true |
| 11 | + test: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + name: Flag engine Unit tests |
| 14 | + |
| 15 | + strategy: |
| 16 | + max-parallel: 4 |
| 17 | + matrix: |
| 18 | + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
| 19 | + |
| 20 | + steps: |
| 21 | + - name: Cloning repo |
| 22 | + uses: actions/checkout@v4 |
| 23 | + with: |
| 24 | + fetch-depth: 0 |
| 25 | + submodules: recursive |
| 26 | + |
| 27 | + - name: Set up Python ${{ matrix.python-version }} |
| 28 | + uses: actions/setup-python@v5 |
| 29 | + with: |
| 30 | + python-version: ${{ matrix.python-version }} |
| 31 | + |
| 32 | + - name: Install Dependencies |
| 33 | + run: | |
| 34 | + python -m pip install --upgrade pip |
| 35 | + pip install -r requirements.txt -r requirements-dev.txt |
| 36 | +
|
| 37 | + - name: Check Formatting |
| 38 | + run: black --check . |
| 39 | + |
| 40 | + - name: Check Imports |
| 41 | + run: | |
| 42 | + git ls-files | grep '\.py$' | xargs absolufy-imports |
| 43 | + isort . --check |
| 44 | +
|
| 45 | + - name: Check flake8 linting |
| 46 | + run: flake8 . |
| 47 | + |
| 48 | + - name: Check Typing |
| 49 | + run: mypy --strict . |
| 50 | + |
| 51 | + - name: Run Tests |
| 52 | + run: pytest -p no:warnings |
| 53 | + |
| 54 | + - name: Check Coverage |
| 55 | + uses: 5monkeys/cobertura-action@v14 |
| 56 | + with: |
| 57 | + minimum_coverage: 100 |
| 58 | + fail_below_threshold: true |
0 commit comments