diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..7e83bc8 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,20 @@ +name: pr + +on: pull_request + +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install dependencies + # TODO: move test dependencies to a separate file + run: | + python -m pip install -e . + python -m pip install pytest mock + - name: Run pytest + run: pytest diff --git a/.gitignore b/.gitignore index b658468..08c530e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ tmp bin/ad2-test *~ .vscode +venv +.venv