use new set_attribute feature #45
Workflow file for this run
This file contains hidden or 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: Conda CI | |
| on: [pull_request, push] | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: myenv | |
| miniforge-version: latest | |
| # use-mamba: true | |
| channels: conda-forge | |
| - name: Create Conda environment | |
| shell: bash -l {0} | |
| run: | | |
| conda install -c conda-forge fenics-dolfinx=0.9.0 pyvista | |
| - name: Install local package and dependencies | |
| shell: bash -l {0} | |
| run: | | |
| pip install .[test] | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| pytest test/ --cov openmc2dolfinx --cov-report xml --cov-report term | |
| - name: Upload to codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml |