feat: add method to obtain schemas from workflow repo #171
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches_ignore: [] | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup environments | |
run: | | |
conda create -c conda-forge --quiet --name black black>=22 | |
conda create -c conda-forge --quiet --name pyflakes pyflakes | |
- name: Check formatting with black | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate black | |
black --check snakedeploy | |
- name: Check imports with pyflakes | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate pyflakes | |
pyflakes snakedeploy | |
testing: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v2 | |
- name: Setup test environment | |
run: | | |
pip install -e . | |
- name: Test snakedeploy | |
run: | | |
/bin/bash tests/test_client.sh |