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