Fixing build workflows and adding more images #46
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: 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 |