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
#!/bin/bash | |
# Adapted from: https://janosh.dev/blog/conda-auto-env | |
# | |
# Automatically activates conda environments when entering directories | |
# containing a conda environment file. The file must be named | |
# - env(ironment).y(a)ml | |
# Deactivates env when exiting the directory. If the env doesn't exist yet, | |
# offer to create it from file. The script will use mamba if available. | |
# | |
# Setup: |
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: deploy-book | |
# Only run this when the master branch | |
on: | |
push: | |
branches: | |
- main | |
# Option to runa ction manually | |
workflow_dispatch: | |
inputs: |
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: Build and test Python package | |
on: | |
push: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
python_tests: | |
name: first code check / python-3.8 / ubuntu-latest |
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: Publish PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi: | |
runs-on: ubuntu-latest | |
steps: |
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: Publish DockerHub | |
on: | |
release: | |
types: [published] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: |