Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/fetch-mnist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Fetch MNIST raw arrays

on:
pull_request:
paths:
- '.github/workflows/fetch-mnist.yml'

permissions:
contents: read

jobs:
fetch:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Download official Keras MNIST mirror
run: |
mkdir -p artifact
python - <<'PY'
import urllib.request
url='https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz'
urllib.request.urlretrieve(url,'artifact/mnist.npz')
PY
ls -lh artifact/mnist.npz
- name: Upload raw MNIST
uses: actions/upload-artifact@v4
with:
name: mnist-raw-npz
path: artifact/mnist.npz
compression-level: 0
retention-days: 1
Loading