Skip to content

Commit

Permalink
updated conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Jun 19, 2024
1 parent e678f94 commit ee822b6
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 137 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@

name: build ⚙️

on: [ push, pull_request ]

jobs:
build:

name: Conda Build with Python${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get -y install pandoc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
sudo apt-get -y install pandoc graphviz
- name: Setup Conda (Micromamba) with Python${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
python-version: ${{ matrix.python-version }}
cache-downloads: true
cache-environment: true
environment-file: environment.yml
create-args: >-
conda
python=${{ matrix.python-version }}
- name: Conda and Mamba versions
run: |
conda --version
echo "micromamba: $(micromamba --version)"
- name: Install requirements 📦
run: |
python -m pip install --upgrade pip
Expand All @@ -33,6 +42,9 @@ jobs:
- name: Lint with flake8 ⚙️
run: make lint
if: matrix.python-version == 3.10
# - name: Check formatting with black ⚙️
# run: black --check --target-version py310 rook tests
# if: matrix.python-version == 3.10
- name: Build docs 🏗️
run: make docs
if: matrix.python-version == 3.10
Expand Down
5 changes: 0 additions & 5 deletions =3.6

This file was deleted.

5 changes: 0 additions & 5 deletions =3.8

This file was deleted.

3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- click
- psutil
- pandas
- matplotlib
- matplotlib-base
- pydap
# tests
- pytest
Loading

0 comments on commit ee822b6

Please sign in to comment.