mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
34 lines
659 B
YAML
34 lines
659 B
YAML
name: build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: "ubuntu-latest"
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: conda-incubator/setup-miniconda@v2
|
|
with:
|
|
activate-environment: test
|
|
environment-file: environment.yml
|
|
python-version: 3.8
|
|
auto-activate-base: false
|
|
- name: Conda Info
|
|
run: |
|
|
conda info
|
|
conda list
|
|
- name: Run Pytest
|
|
run: |
|
|
conda install pytest
|
|
python -m pytest
|