CICD pytest updates #37
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: ChatDoc CI | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
conda env update --file environment.yml --name adl | |
conda activate adl | |
- name: Lint with flake8 | |
run: | | |
conda install flake8 | |
# Lint using flake8 with settings from .flake8 file | |
flake8 --config .flake8 | |
- name: Test with pytest | |
run: | | |
conda install pytest | |
pytest | |
env: | |
CACHE_NUMBER: 0 # |