Merge branch 'master' of https://github.com/darribas/gds_env #75
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: Test Windows Installer | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
auto-activate-base: true | |
- name: Run installer | |
shell: bash -l {0} | |
run: | | |
./gds_py/gds_py_win_installer.bat | |
- name: Check and Log Environment | |
shell: bash -l {0} | |
run: | | |
conda activate gds | |
conda info | |
# Print conda list | |
conda list | |
- name: Test Install | |
shell: bash -l {0} | |
continue-on-error: false | |
run: | | |
conda activate gds | |
jupyter nbconvert --to html --execute gds_py/check_py_stack.ipynb | |
- name: Write Explicit Stack | |
shell: bash -l {0} | |
continue-on-error: false | |
run: | | |
conda activate gds | |
conda list --explicit | |
conda list --explicit > gds_py/gds_py_explicit_windows-latest.txt | |
- name: Commit file | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add gds_py/gds_py_explicit_windows-latest.txt | |
git commit -m "Update explicit windows-latest file" --allow-empty | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |