Skip to content

Bump sentry-sdk from 1.45.0 to 2.8.0 in /envs (#88) #107

Bump sentry-sdk from 1.45.0 to 2.8.0 in /envs (#88)

Bump sentry-sdk from 1.45.0 to 2.8.0 in /envs (#88) #107

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@f8b8a1e23a26f60a44c853292711bacfd3eac822
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@029f5b4aeeeb58fdfe1410a5d17f967dacf36262
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: ${{ secrets.DEPLOY_PATH }}/deploy.sh