Skip to content

Merge pull request #258 from pyiron/notebooks #83

Merge pull request #258 from pyiron/notebooks

Merge pull request #258 from pyiron/notebooks #83

Workflow file for this run

name: Coverage
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
shell: bash -l {0}
run: |
cp .ci_support/environment.yml environment.yml
tail --lines=+4 .ci_support/environment-lammps.yml >> environment.yml
tail --lines=+4 .ci_support/environment-qe.yml >> environment.yml
sed -i 's/- scipy =1.13.0/- scipy =1.12.0/g' environment.yml
- 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
environment-file: environment.yml
use-mamba: true
- name: Test
shell: bash -l {0}
timeout-minutes: 30
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
coverage run --omit="atomistics/_version.py,tests/*" -m unittest discover tests
coverage xml
env:
ASE_ESPRESSO_COMMAND: "pw.x -in PREFIX.pwi > PREFIX.pwo"
ESPRESSO_PSEUDO: tests/static/qe
OMPI_MCA_plm: isolated
OMPI_MCA_btl_vader_single_copy_mechanism: none
OMPI_MCA_rmaps_base_oversubscribe: yes
- name: Coveralls
uses: coverallsapp/github-action@v2