-
Notifications
You must be signed in to change notification settings - Fork 1.2k
79 lines (73 loc) · 2.09 KB
/
ci-keras.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI Keras
on:
# Run on manual trigger
workflow_dispatch:
# Run on pull requests
pull_request:
paths-ignore:
- '*.md'
# Run on merge queue
merge_group:
# Run when pushing to main or dev branches
push:
branches:
- main
- dev*
# Run scheduled CI flow daily
schedule:
- cron: '0 8 * * 0'
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- name: Keras 2.9.0 (TensorFlow 2.9.2 Python 3.9)
framework: keras
python: 3.9
tensorflow: 2.9.2
keras: 2.9.0
tf_addons: 0.17.0
- name: TensorFlow-Keras 2.9.2 (Keras 2.9.0 Python 3.9)
framework: kerastf
python: 3.9
tensorflow: 2.9.2
keras: 2.9.0
tf_addons: 0.17.0
- name: Keras 2.10.0 (TensorFlow 2.10.1 Python 3.9)
framework: keras
python: 3.9
tensorflow: 2.10.1
keras: 2.10.0
tf_addons: 0.18.0
- name: TensorFlow-Keras 2.10.1 (Keras 2.10.0 Python 3.9)
framework: kerastf
python: 3.9
tensorflow: 2.10.1
keras: 2.10.0
tf_addons: 0.18.0
name: ${{ matrix.name }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -y -q install ffmpeg libavcodec-extra
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements_test.txt
pip install tensorflow==${{ matrix.tensorflow }}
pip install keras==${{ matrix.keras }}
pip install tensorflow-addons==${{ matrix.tf_addons }}
pip list
- name: Run Tests
run: ./run_tests.sh ${{ matrix.framework }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true