Skip to content

Commit

Permalink
updating to be same as deepdiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
beckynevin committed Apr 9, 2024
1 parent 9ac4240 commit c78fa17
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Cache Poetry dependencies
uses: actions/cache@v2
with:
path: |
~/.cache
~/.local/share/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-poetry-
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
Expand All @@ -26,12 +35,12 @@ jobs:
- name: Install dependencies
shell: bash
run: python -m poetry install

- name: Install pytest
run: python -m pip install pytest

- name: Create Environment File
run: echo "PYTHONPATH=$(pwd):$(pwd)/src" >> ${{ runner.workspace }}/.env

- name: Test with pytest
run: |
pwd
cd ./test
pytest test_DeepEnsemble.py
run: python -m poetry run pytest --cov
env:
PYTHONPATH: ${{ env.PYTHONPATH }}
ENV_FILE: ${{ runner.workspace }}/.env

0 comments on commit c78fa17

Please sign in to comment.