File size: 1,463 Bytes
d5ee97c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
  schedule:
    - cron: 0 0 * * 1

jobs:
  linter_and_test:
    runs-on: ubuntu-18.04
    strategy:
      max-parallel: 10
      matrix:
        python-version: [3.7]
        tensorflow-version: [2.7.0]
    steps:
      - uses: actions/checkout@master
      - uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}
          architecture: 'x64'
      - uses: actions/cache@v1
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-pip-${{ hashFiles('**/setup.py') }}
          restore-keys: |
            ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.tensorflow-version }}-pip-
      - name: Install dependencies
        run: |
          # install python modules
          python -m pip install --upgrade pip
          pip install -q -U numpy
          pip install git+https://github.com/repodiac/german_transliterate.git#egg=german_transliterate
          pip install -q tensorflow-gpu==${{ matrix.tensorflow-version }}
          pip install -q -e .
          pip install -q -e .[test]
          pip install typing_extensions
          sudo apt-get install libsndfile1-dev
          python -m pip install black
      - name: black
        run: |
          python -m black . 
      - name: Pytest
        run: |
          pytest test