Merge pull request #1620 from pyiron/server #5558
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is used to check the compatibility with the pyiron_contrib | |
name: Compatibility with pyiron_contrib | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [labeled, opened, synchronize, reopened] | |
jobs: | |
build: | |
if: | | |
github.event_name == 'push' || | |
( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'integration' )) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Merge environment | |
run: | | |
git clone https://github.com/pyiron/pyiron_contrib ../pyiron_contrib | |
grep -v "pyiron_base" ../pyiron_contrib/.ci_support/environment.yml > ../pyiron_contrib/environment.yml | |
cp .ci_support/environment.yml environment.yml | |
tail --lines=+4 ../pyiron_contrib/environment.yml >> 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: | | |
cd ../pyiron_contrib | |
python ../pyiron_base/.ci_support/pyironconfig.py | |
pip install versioneer[toml]==0.29 | |
pip install . --no-deps --no-build-isolation | |
cd ../pyiron_base | |
pip install . --no-deps --no-build-isolation | |
cd ../pyiron_contrib | |
python -m unittest discover tests/ |