From 2501116d0c0cd609ff80e58f18a47659d9774279 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 13 Nov 2023 19:21:54 +0100 Subject: [PATCH 1/2] Fix LAMMPS unit tests --- .ci_support/environment-lammps.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci_support/environment-lammps.yml b/.ci_support/environment-lammps.yml index 413cb2d3..9f2e7534 100644 --- a/.ci_support/environment-lammps.yml +++ b/.ci_support/environment-lammps.yml @@ -2,4 +2,5 @@ channels: - conda-forge dependencies: - lammps =2023.08.02 -- pylammpsmpi =0.2.3 +- pandas =2.1.3 +- pylammpsmpi =0.2.5 From 814f253c67e27b35a8d2b2537322afc2961790a3 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 13 Nov 2023 19:23:23 +0100 Subject: [PATCH 2/2] Add minimal test environment --- .github/workflows/minimal.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/minimal.yml diff --git a/.github/workflows/minimal.yml b/.github/workflows/minimal.yml new file mode 100644 index 00000000..fc2a8364 --- /dev/null +++ b/.github/workflows/minimal.yml @@ -0,0 +1,39 @@ +name: Minimal + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Mambaforge + uses: conda-incubator/setup-miniconda@v2 + with: + python-version: '3.11' + miniforge-variant: Mambaforge + channels: conda-forge + channel-priority: strict + activate-environment: my-env + use-mamba: true + - name: Update environment + run: mamba env update -n my-env -f .ci_support/environment.yml + - name: Setup + shell: bash -l {0} + run: | + pip install --no-deps . + - name: Test + shell: bash -l {0} + timeout-minutes: 30 + run: | + coverage run --omit atomistics/_version.py -m unittest discover tests + coverage combine