Skip to content

Commit

Permalink
Update continuous integration environment (#22)
Browse files Browse the repository at this point in the history
* Update continuous integration environment

* Add badge to readme
  • Loading branch information
jan-janssen authored Feb 9, 2025
1 parent 8841b7c commit 2f7efb1
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 160 deletions.
9 changes: 9 additions & 0 deletions .ci_support/environment-pyiron-atomistics-0-6-22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
channels:
- conda-forge
dependencies:
- jupyter
- papermill
- pyiron-data =0.0.30
- pyiron_atomistics =0.6.22
- lammps =2024.02.07=*_openmpi_*
- sphinxdft =3.1
9 changes: 9 additions & 0 deletions .ci_support/environment-pyiron-atomistics-0-6-23.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
channels:
- conda-forge
dependencies:
- jupyter
- papermill
- pyiron-data =0.0.30
- pyiron_atomistics =0.6.23
- lammps =2024.02.07=*_openmpi_*
- sphinxdft =3.1
18 changes: 0 additions & 18 deletions .github/workflows/black.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/format_black.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/minimal.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/mypy.yml

This file was deleted.

172 changes: 172 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
name: Pipeline

on:
push:
branches: [ main ]
pull_request:

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --diff"
src: ./${{ github.event.repository.name }}

black_fix: # in most cases pre-commit is faster
needs: [black]
if: failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: format black
uses: psf/black@stable
with:
options: ""
src: "./${{ github.event.repository.name }}"
- name: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "pyiron-runner"
git commit -m "Format black" -a
- name: push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }}
branch: ${{ github.event.pull_request.head.ref }}

minimal:
needs: [black]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-mini.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
pyiron_atomistics_tests_0_6_20:
needs: [black]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-pyiron-atomistics-0-6-20.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
pyiron_atomistics_tests_0_6_21:
needs: [black]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-pyiron-atomistics-0-6-21.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
pyiron_atomistics_tests_0_6_22:
needs: [black]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-pyiron-atomistics-0-6-22.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
pyiron_atomistics_tests_0_6_23:
needs: [black]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-pyiron-atomistics-0-6-23.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
autobot:
needs: [minimal, pyiron_atomistics_tests_0_6_23, pyiron_atomistics_tests_0_6_22, pyiron_atomistics_tests_0_6_21, pyiron_atomistics_tests_0_6_20]
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]')
steps:
- name: Enable auto-merge for bot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
29 changes: 0 additions & 29 deletions .github/workflows/pyiron_atomistics_tests_0_6_20.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/pyiron_atomistics_tests_0_6_21.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Dataclasses for pyiron
[![Pipeline](https://github.com/pyiron/pyiron_dataclasses/actions/workflows/pipeline.yml/badge.svg)](https://github.com/pyiron/pyiron_dataclasses/actions/workflows/pipeline.yml)

The `pyiron_dataclasses` module provides a series of [dataclasses](https://docs.python.org/3/library/dataclasses.html)
for the `pyiron` workflow framework. It can load HDF5 files created by `pyiron_atomistics` and read the content stored
in those files, without depending on `pyiron_atomistics`. Furthermore, it is not fixed to a single version of
Expand Down

0 comments on commit 2f7efb1

Please sign in to comment.