Update python-package-conda.yml #19
Workflow file for this run
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: Python Package using Conda | |
on: [push] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
C:\Miniconda\condabin\conda.bat install tqdm openjpeg ruamel.yaml | |
python -m pip install --upgrade pip | |
pip install -r test_requirements.txt -U | |
pip install -r requirements.txt -U | |
pip install -e . | |
- name: Test with pytest | |
run: | | |
python -m pytest tests/ | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
conda install tqdm openjpeg ruamel.yaml | |
python -m pip install --upgrade pip | |
pip install -r test_requirements.txt -U | |
pip install -r requirements.txt -U | |
pip install -e . | |
- name: Lint with flake8 | |
run: | | |
# flake8 already installed via test_requirements.txt | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
python -m pytest tests/ | |
build-mac: | |
runs-on: macos-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
- name: Install dependencies | |
run: | | |
conda install tqdm openjpeg ruamel.yaml | |
brew install hdf5 | |
python -m pip install --upgrade pip | |
pip install -r test_requirements.txt -U --disable-pip-version-check | |
HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.14.3 pip install -r requirements.txt -U --disable-pip-version-check | |
pip install -e . --disable-pip-version-check | |
- name: Test with pytest | |
run: | | |
python -m pytest tests/ |