Skip to content

[pre-commit.ci] pre-commit autoupdate #502

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #502

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
working-directory: ./web
- run: npm run build --if-present
working-directory: ./web
test:
name: test-py${{ matrix.python }}-${{matrix.CARBONPLAN_DATA}}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10']
CARBONPLAN_DATA: [
# 'https://carbonplan.blob.core.windows.net/carbonplan-data',
'gs://carbonplan-data',
]
steps:
- uses: actions/checkout@v3
- name: Install Conda environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ci/environment.yaml
cache-downloads: true
extra-specs: |
python=${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install -e .
- name: Conda list information
run: |
conda env list
conda list
- name: Run tests
env:
CARBONPLAN_DATA: ${{ matrix.CARBONPLAN_DATA }}
run: |
python -m pytest