Skip to content

Merge pull request #8 from CosmoStat/new_env #16

Merge pull request #8 from CosmoStat/new_env

Merge pull request #8 from CosmoStat/new_env #16

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
- name: Build conda environment
shell: bash -l {0}
run: conda env create -f environment.yml
- name: Install package
shell: bash -l {0}
run: |
conda activate cosmostatmap
python setup.py install
- name: Build map
shell: bash -l {0}
run: |
conda activate cosmostatmap
python scripts/generate_map.py
mv cosmostat_map.png ./build
- name: GitHub pages action
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build