update workflows #2
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: Test xraydb python with ubuntu with conda | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 5 | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python from Miniconda/conda | |
| uses: conda-incubator/setup-miniconda@v2.2.0 | |
| with: | |
| miniconda-version: latest | |
| channels: conda-forge | |
| channel-priority: strict | |
| activate-environment: anaconda-client-env | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| printenv | |
| conda install -y -c conda-forge python=${{ matrix.python-version }} "numpy>=2" "scipy>=1.13" | |
| - name: Install xraydb and run tests | |
| run: | | |
| cd python | |
| pip install ".[all]" | |
| cd tests | |
| python -m pytest --cov=xraydb --cov-report=xml | |
| - name: upload coverage report to codecov | |
| uses: codecov/codecov-action@v2 |