diff --git a/.github/workflows/build_env.yml b/.github/workflows/build_env.yml new file mode 100644 index 0000000..e5fe2b4 --- /dev/null +++ b/.github/workflows/build_env.yml @@ -0,0 +1,29 @@ +name: Build +on: [push] + +jobs: + binder: + runs-on: ubuntu-latest + steps: + - name: Build and cache on mybinder.org + uses: jupyterhub/repo2docker-action@master + with: + NO_PUSH: true + MYBINDERORG_TAG: ${{ github.event.ref }} + + conda-solve: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Setup Conda Environment + uses: conda-incubator/setup-miniconda@v2 + with: + environment-file: environment.yml + activate-environment: tutorial-template + auto-activate-base: false diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml new file mode 100644 index 0000000..a6d90ee --- /dev/null +++ b/.github/workflows/linting.yaml @@ -0,0 +1,15 @@ +name: linting + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + linting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.3