Skip to content

Commit

Permalink
using test workflow from deepdiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
beckynevin committed Feb 14, 2024
1 parent 3dc3bb3 commit 56092fd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
name: test

on: [pull request]
on: push

jobs:
test:

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 @@ -27,6 +36,11 @@ jobs:
shell: bash
run: python -m poetry install

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

- name: Test with pytest
run: |
python3 -m poetry run pytest --cov
run: python -m poetry run pytest --cov
env:
PYTHONPATH: ${{ env.PYTHONPATH }}
ENV_FILE: ${{ runner.workspace }}/.env

0 comments on commit 56092fd

Please sign in to comment.