add dataset auto-conversion to all main entry scripts #304
Workflow file for this run
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
# This workflow will install PyTorch for CPU and other Python dependencies and calls pre-commit. | |
name: pre-commit | |
on: | |
pull_request: {} | |
push: | |
branches: main | |
tags: "*" | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: show previous workflow conclusion | |
run: echo ${{ github.event.workflow_run.conclusion }} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu | |
pip install -r requirements.txt | |
- name: Execute pre-commit | |
uses: pre-commit/[email protected] |