From 0cbf719a886cdbe9bfa0538df70ee3a163233d1d Mon Sep 17 00:00:00 2001 From: felixmett Date: Thu, 16 Jul 2026 16:39:15 +0200 Subject: [PATCH 1/3] test protection From b68446cce50d03c49d2cf5029a87228aba240520 Mon Sep 17 00:00:00 2001 From: felixmett Date: Thu, 16 Jul 2026 16:50:31 +0200 Subject: [PATCH 2/3] Add dependabot and python ci workflow --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a501b6c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "monthly" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9010fc1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: ci +on: + push: + branches: + - master + tags: + - "*" + pull_request: + +jobs: + test: + name: Python ${{ matrix.python-version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: + - "3.10" + - "3.11" + - "3.12" + os: + - "ubuntu-latest" + - "windows-latest" + - "macos-latest" + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ".[dev]" + - name: Run tests + run: | + pytest \ No newline at end of file From 58480dc48d908541d42b60d95f947bce9cb9bb47 Mon Sep 17 00:00:00 2001 From: felixmett Date: Thu, 16 Jul 2026 16:58:02 +0200 Subject: [PATCH 3/3] Add build status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d6e3275..e51c74d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://github.com/felixmett/microstructure-random-fields/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/felixmett/microstructure-random-fields/actions/workflows/ci.yml?query=branch%3Amaster) + This project is a Python implementation of the mixture random field method proposed by Gao et al. [1] for stochastic reconstruction of multiphase heterogeneous material property fields.