Skip to content

Commit 6cbe163

Browse files
authored
common
1 parent e93b3c3 commit 6cbe163

File tree

1 file changed

+105
-26
lines changed

1 file changed

+105
-26
lines changed

.github/workflows/examples-ci.yml

Lines changed: 105 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,120 @@ on:
66
schedule:
77
- cron: '0 8 * * *' # Trigger at 8 AM every day
88

9+
# jobs:
10+
# test-quick-dataset-analysis:
11+
# runs-on: ${{ matrix.os }}
12+
# env:
13+
# SENTRY_OPT_OUT: True
14+
# strategy:
15+
# matrix:
16+
# os: [ubuntu-latest]
17+
# python-version: ['3.9']
18+
# steps:
19+
# - name: Checkout repository
20+
# uses: actions/checkout@v3
21+
# with:
22+
# fetch-depth: 0
23+
24+
# - name: Set up Python
25+
# uses: actions/setup-python@v3
26+
# with:
27+
# python-version: ${{ matrix.python-version }}
28+
29+
# - name: Install dependencies
30+
# run: |
31+
# python -m pip install --upgrade pip
32+
# pip install fastdup matplotlib
33+
34+
# - name: Download dataset
35+
# run: |
36+
# wget "https://thor.robots.ox.ac.uk/~vgg/data/pets/images.tar.gz" -O "images.tar.gz"
37+
# tar xf "images.tar.gz"
38+
39+
# - name: Run example
40+
# run: |
41+
# python .github/workflows/tests/quick_dataset_analysis.py
42+
43+
# - name: Save artifacts
44+
# uses: actions/upload-artifact@v3
45+
# with:
46+
# name: fastdup_work_dir
47+
# path: fastdup_work_dir/
48+
49+
# test-cleaning-image-dtaset:
50+
# runs-on: ${{ matrix.os }}
51+
# env:
52+
# SENTRY_OPT_OUT: True
53+
# strategy:
54+
# matrix:
55+
# os: [ubuntu-latest]
56+
# python-version: ['3.9']
57+
# steps:
58+
# - name: Checkout repository
59+
# uses: actions/checkout@v3
60+
# with:
61+
# fetch-depth: 0
62+
63+
# - name: Set up Python
64+
# uses: actions/setup-python@v3
65+
# with:
66+
# python-version: ${{ matrix.python-version }}
67+
68+
# - name: Install dependencies
69+
# run: |
70+
# python -m pip install --upgrade pip
71+
# pip install fastdup matplotlib
72+
73+
# - name: Download dataset
74+
# run: |
75+
# wget http://data.vision.ee.ethz.ch/cvl/food-101.tar.gz
76+
# tar -xf food-101.tar.gz
77+
78+
# - name: Run example
79+
# run: |
80+
# python .github/workflows/tests/cleaning_image_dataset.py
81+
82+
# - name: Save artifacts
83+
# uses: actions/upload-artifact@v3
84+
# with:
85+
# name: fastdup_work_dir
86+
# path: fastdup_work_dir/
87+
88+
89+
90+
# reusable actions
991
jobs:
10-
test-quick-dataset-analysis:
92+
common-steps:
1193
runs-on: ${{ matrix.os }}
12-
env:
13-
SENTRY_OPT_OUT: True
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest]
17-
python-version: ['3.9']
1894
steps:
1995
- name: Checkout repository
2096
uses: actions/checkout@v3
2197
with:
22-
fetch-depth: 0
98+
fetch-depth: 0
2399

24100
- name: Set up Python
25101
uses: actions/setup-python@v3
26102
with:
27103
python-version: ${{ matrix.python-version }}
28-
104+
29105
- name: Install dependencies
30106
run: |
31107
python -m pip install --upgrade pip
32108
pip install fastdup matplotlib
33109
110+
# jobs using common steps
111+
jobs:
112+
test-quick-dataset-analysis:
113+
runs-on: ${{ matrix.os }}
114+
env:
115+
SENTRY_OPT_OUT: True
116+
strategy:
117+
matrix:
118+
os: [ubuntu-latest]
119+
python-version: ['3.9']
120+
steps:
121+
- uses: common-steps
122+
34123
- name: Download dataset
35124
run: |
36125
wget "https://thor.robots.ox.ac.uk/~vgg/data/pets/images.tar.gz" -O "images.tar.gz"
@@ -43,10 +132,10 @@ jobs:
43132
- name: Save artifacts
44133
uses: actions/upload-artifact@v3
45134
with:
46-
name: fastdup_work_dir
135+
name: fastdup_work_dir_quick
47136
path: fastdup_work_dir/
48137

49-
test-cleaning-image-dtaset:
138+
test-cleaning-image-dataset:
50139
runs-on: ${{ matrix.os }}
51140
env:
52141
SENTRY_OPT_OUT: True
@@ -55,20 +144,7 @@ jobs:
55144
os: [ubuntu-latest]
56145
python-version: ['3.9']
57146
steps:
58-
- name: Checkout repository
59-
uses: actions/checkout@v3
60-
with:
61-
fetch-depth: 0
62-
63-
- name: Set up Python
64-
uses: actions/setup-python@v3
65-
with:
66-
python-version: ${{ matrix.python-version }}
67-
68-
- name: Install dependencies
69-
run: |
70-
python -m pip install --upgrade pip
71-
pip install fastdup matplotlib
147+
- uses: common-steps
72148

73149
- name: Download dataset
74150
run: |
@@ -82,5 +158,8 @@ jobs:
82158
- name: Save artifacts
83159
uses: actions/upload-artifact@v3
84160
with:
85-
name: fastdup_work_dir
161+
name: fastdup_work_dir_cleaning
86162
path: fastdup_work_dir/
163+
164+
165+

0 commit comments

Comments
 (0)