renamed safe_mode to modifysim_no_run and deleted unused comments #1020
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: test | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
max-parallel: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up conda environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: my-environment | |
environment-file: environment.yaml | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: true | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | |
- name: Install | |
shell: bash -l {0} | |
run: | | |
pip install . | |
- name: Check pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | |
- name: Run Test | |
shell: bash -l {0} | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }} | |
run: | | |
pytest -m "not skip" tests |