Merge pull request #533 from maurov/struct2xasV2407 #124
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: Test with Ubuntu, Conda | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
fail-fast: false | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
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,defaults | |
channel-priority: true | |
activate-environment: anaconda-client-env | |
python-version: ${{ matrix.python-version }} | |
- name: Install conda dependencies | |
run: | | |
printenv | |
conda install -y -c conda-forge python=${{ matrix.python-version }} "numpy>=1.23" "scipy>=1.8" "matplotlib>=3.6" "h5py>=3.5" "wxpython>=4.2" scikit-image scikit-learn pandas jupyter plotly pyparsing pytest pytest-cov coverage | |
- name: Install xraylarch and other dependencies with pip | |
run: | | |
pip install ".[all]" | |
- name: Run test suite | |
run: | | |
cd tests | |
python -m pytest |