Update README.md #12
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: "Run tests" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.3.0 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2.2.0 | |
with: | |
mamba-version: "*" | |
activate-environment: argo_assistant | |
environment-file: environment.yml | |
miniforge-variant: Mambaforge | |
miniforge-version: 4.9.2-4 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
conda env update --file environment_dev.yml | |
pip install -e . | |
- name: Pytest | |
run: | | |
pytest tests -svv -m "not nebari_resources" | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.3.0 | |
- name: Install dependencies | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Lint | |
run: | | |
pre-commit run --all-files |