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