build.yml 1.17 KB
Newer Older
Gmodena's avatar
Gmodena committed
1
2
3
4
5
name: build

on: [push]

jobs:
Gmodena's avatar
Gmodena committed
6
  codechecks:
Gmodena's avatar
Gmodena committed
7
8
9
10
11
    runs-on: ubuntu-latest
    continue-on-error: true
    strategy:
      max-parallel: 4
      matrix:
Gmodena's avatar
Gmodena committed
12
        python-version: ["3.7", ]
Gmodena's avatar
Gmodena committed
13
14
15
        pet-data-pipeline: ["image-matching", ]
    steps:
    - uses: actions/checkout@v2
Gmodena's avatar
Gmodena committed
16
17
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
Gmodena's avatar
Gmodena committed
18
      with:
Gmodena's avatar
Gmodena committed
19
20
21
        python-version: ${{ matrix.python-version }}
    - name: Install tox
      run: pip install tox
Gmodena's avatar
Gmodena committed
22
23
24
    - name: Lint with flake8
      run: cd ${{ matrix.pet-data-pipeline }}; make lint SKIP_DOCKER=true
    - name: Type check with mypy
Gmodena's avatar
Gmodena committed
25
      if: always()
Gmodena's avatar
Gmodena committed
26
27
      run: cd ${{ matrix.pet-data-pipeline }}; make mypy SKIP_DOCKER=true
    - name: Test with pytest
Gmodena's avatar
Gmodena committed
28
      if: always()
Gmodena's avatar
Gmodena committed
29
      run: cd ${{ matrix.pet-data-pipeline }}; make test SKIP_DOCKER=true
Gmodena's avatar
Gmodena committed
30
31
32
33
34
  dag-validation:
    runs-on: ubuntu-latest
    continue-on-error: true
    steps:
    - uses: actions/checkout@v2
Gmodena's avatar
Gmodena committed
35
    - name: Set up Python
Gmodena's avatar
Gmodena committed
36
37
      uses: actions/setup-python@v2
      with:
Gmodena's avatar
Gmodena committed
38
        python-version: "3.7"
Gmodena's avatar
Gmodena committed
39
40
41
42
43
44
    - name: Install tox
      run: pip install tox
    - name: Test with pytest
      if: always()
      run: make test_dags SKIP_DOCKER=true