CI #860
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |