Skip to content

Bump jinja2 from 3.1.4 to 3.1.5 in /envs (#101) #120

Bump jinja2 from 3.1.4 to 3.1.5 in /envs (#101)

Bump jinja2 from 3.1.4 to 3.1.5 in /envs (#101) #120

Workflow file for this run

name: deployment
on:
push:
branches: [ 'main' ]
jobs:
test-deploy:
name: pytest & deploy on success
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
# Need to specify Python version here because we use test env which gets its
# Python version via matrix
python-version: [ '3.10' ]
steps:
- uses: actions/checkout@v4
- name: Set up Conda environment with Micromamba
uses: mamba-org/setup-micromamba@068f1ab4b37ed9b3d9f73da7db90a0cda0a48d29
with:
environment-file: envs/environment-test.yaml
environment-name: salishsea-site-test
# environment caching does not play nicely with --editable installed packages
cache-environment: false
cache-downloads: true
# persist downloads cache for 1 day
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=${{ inputs.python-version }}
- name: pytest package
shell: bash -l {0}
run: |
pytest
- name: update & restart app via ssh
uses: appleboy/ssh-action@7eaf76671a0d7eec5d98ee897acda4f968735a17
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: ${{ secrets.DEPLOY_PATH }}/deploy.sh