Skip to content

Commit

Permalink
Adds LCIs of biochar, enhanced weathering of rock and ocean liming.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Dec 17, 2024
1 parent 2139a68 commit 252f7c1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,61 +28,61 @@ jobs:
git commit -am "Black reformating"
git push
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]

needs: clean

steps:
- uses: actions/checkout@v2

- name: Install system dependencies for pyenv
run: |
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev \
libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev \
libncurses-dev tk-dev
- name: Install python version
uses: gabrielfalcao/pyenv-action@v18
with:
default: 3.11
command: pip install -U pip # upgrade pip after installing python


- name: create environment
run: |
pyenv install 3.11 && python -mvenv .venv390
- name: Activate pyenv Python
run: |
pyenv install -s 3.11
pyenv global 3.11
python --version
- name: Install dependencies
run: |
pip install --upgrade setuptools wheel
pip install --upgrade pip
pip install --force-reinstall setuptools
pip install -r requirements.txt --upgrade pip
pip install pytest
pip install pytest-instafail
pip install -e . --verbose
pip check
- name: Run tests
run: |
pytest -m "not slow" --instafail
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS }}
IAM_FILES_KEY: ${{ secrets.IAM_FILES_KEY }}
EI_USERNAME: ${{ secrets.EI_USERNAME }}
EI_PASSWORD: ${{ secrets.EI_PASSWORD }}
# build:
# runs-on: ${{matrix.os}}
# strategy:
# matrix:
# os: [ubuntu-latest]
#
# needs: clean
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Install system dependencies for pyenv
# run: |
# sudo apt-get update
# sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev \
# libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev \
# libncurses-dev tk-dev
#
# - name: Install python version
# uses: gabrielfalcao/pyenv-action@v18
# with:
# default: 3.11
# command: pip install -U pip # upgrade pip after installing python
#
#
# - name: create environment
# run: |
# pyenv install 3.11 && python -mvenv .venv390
#
#
# - name: Activate pyenv Python
# run: |
# pyenv install -s 3.11
# pyenv global 3.11
# python --version
#
# - name: Install dependencies
# run: |
# pip install --upgrade setuptools wheel
# pip install --upgrade pip
# pip install --force-reinstall setuptools
# pip install -r requirements.txt --upgrade pip
# pip install pytest
# pip install pytest-instafail
# pip install -e . --verbose
# pip check
#
# - name: Run tests
# run: |
# pytest -m "not slow" --instafail
# env:
# GITHUB_TOKEN: ${{ secrets.COVERALLS }}
# IAM_FILES_KEY: ${{ secrets.IAM_FILES_KEY }}
# EI_USERNAME: ${{ secrets.EI_USERNAME }}
# EI_PASSWORD: ${{ secrets.EI_PASSWORD }}

Pypi:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:

outputs:
- name: {{ name }}
script: "{{ PYTHON }} -m pip install --no-deps --ignore-installed ."
script: "{{ python }} -m pip install --no-deps --ignore-installed ."
requirements:
host:
- python
Expand Down Expand Up @@ -47,7 +47,7 @@ outputs:
- unfold

- name: {{ name }}-bw25
script: "{{ PYTHON }} -m pip install --no-deps --ignore-installed .[bw25]"
script: "{{ python }} -m pip install --no-deps --ignore-installed .[bw25]"
requirements:
host:
- python
Expand Down Expand Up @@ -78,7 +78,7 @@ outputs:
- unfold

- name: {{ name }}-bw2
script: "{{ PYTHON }} -m pip install --no-deps --ignore-installed .[bw2]"
script: "{{ python }} -m pip install --no-deps --ignore-installed .[bw2]"
requirements:
host:
- python
Expand Down

0 comments on commit 252f7c1

Please sign in to comment.