From de65fd41e2cd883579f73d721632d451e67bb815 Mon Sep 17 00:00:00 2001 From: Rob Cerff Date: Sun, 9 Aug 2026 23:15:11 -0400 Subject: [PATCH] Add one-shot MNIST fetch workflow --- .github/workflows/fetch-mnist.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/fetch-mnist.yml diff --git a/.github/workflows/fetch-mnist.yml b/.github/workflows/fetch-mnist.yml new file mode 100644 index 0000000..bdf4cad --- /dev/null +++ b/.github/workflows/fetch-mnist.yml @@ -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