Merge pull request #9 from CosmoStat/refactor #17
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: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.11 | |
- 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 | |
pip install . | |
- name: Build map | |
shell: bash -l {0} | |
run: | | |
conda activate cosmostatmap | |
generate_map.py | |
mv cosmostat_map.png ./build | |
- name: GitHub pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |