-
Notifications
You must be signed in to change notification settings - Fork 10
60 lines (54 loc) · 1.81 KB
/
ts-images.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
name: upload-meterdigits
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
paths:
- images/**
pull_request:
branches: [ master ]
paths:
- images/**
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
create-dataset:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- run: pip install -r requirements.txt
- uses: yaananth/run-notebook@v2
env:
RUNNER: ${{ toJson(runner) }}
SECRETS: ${{ toJson(secrets) }}
GITHUB: ${{ toJson(github) }}
with:
notebook: "prepare_data/digits-createimages.ipynb"
#params: "PATHTOPARAMS.json"
isReport: False
poll: False
# This workflow contains a single job called "build"
upload:
needs: create-dataset
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Upload datasets
uses: jaimevalero/push-kaggle-dataset@v3 # This is the action
env:
# Do not leak your credentials.
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
with:
id: "frankhaverland/tenthofstepofmeterdigits"
title: "imagesofmeterdigits"
subtitle: "Tenth of step of meter digits"
description: "description"
files: datasets/meterdigits
is_public: true