Skip to content

Bump pyramid from 2.0.1 to 2.0.2 in /envs (#50) #65

Bump pyramid from 2.0.1 to 2.0.2 in /envs (#50)

Bump pyramid from 2.0.1 to 2.0.2 in /envs (#50) #65

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@v3
- name: Set up conda environment and install salishsea-site package
uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
with:
miniforge-variant: Mambaforge-pypy3
miniforge-version: latest
use-mamba: true
auto-update-conda: false
auto-activate-base: false
channels: conda-forge,nodefaults
channel-priority: true
python-version: ${{ matrix.python-version }}
environment-file: envs/environment-test.yaml
activate-environment: salishsea-site-test
- name: pytest package
shell: bash -l {0}
run: |
pytest
- name: update & restart app via ssh
uses: appleboy/ssh-action@55dabf81b49d4120609345970c91507e2d734799
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: ${{ secrets.DEPLOY_PATH }}/deploy.sh