chore: bump mamba-org/setup-micromamba from 1 to 2 in the dependencie… #668
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
name: ci-ada-fem | |
on: | |
push: | |
paths: | |
- src/** | |
- tests/fem/** | |
- .github/workflows/ci-FEM.yml | |
- images/femtests.Dockerfile | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- setup.py | |
branches: | |
- main | |
concurrency: | |
group: ci-ada-fem-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
activate: | |
if: | | |
github.repository == 'krande/adapy' && | |
!contains(github.event.head_commit.message, '[skip ci]') | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo ok go | |
test-FEM: | |
name: Test-FEM-analysis | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set DATE env var | |
run: echo "DATE=$(echo $(date +'%y%m%d'))" >> $GITHUB_ENV | |
- uses: mamba-org/setup-micromamba@v2 # https://github.com/mamba-org/setup-micromamba | |
with: | |
condarc: | | |
channels: | |
- https://repo.prefix.dev/code-aster | |
- conda-forge | |
environment-file: conda/environment.core.yml | |
create-args: >- | |
python=3.12 | |
code-aster=*=*nompi* | |
paradoc | |
python-dotenv | |
pytest | |
- name: install latest ada-py | |
run: | | |
pip install . | |
- name: Create Verification Report | |
run: | | |
python build_verification_report.py true true --export-format=docx | |
working-directory: tests/fem | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ADA-FEA-res-debug | |
path: tests/fem/temp | |
- name: Upload Zip file to release | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: tests/fem/temp/_dist/ADA-FEA-verification.docx | |
asset_name: ADA-FEA-verification-${{ env.DATE }}.docx | |
tag: "ADA-FEA-Verification-Report-${{ env.DATE }}" | |
overwrite: true | |
body: "Verification Report for ADAPY - ${{ env.DATE }}" |