Skip to content

Commit

Permalink
Add GitHub Actions workflow for pull requests (#76)
Browse files Browse the repository at this point in the history
* Add GitHub Actions workflow for pull requests

This PR adds a GitHub Actions workflow to run `pytest` on pull requests.

This will help ensure no breaking changes are introduced into the
library.

GitHub Actions is free for public repositories on GitHub.

* try python `3.10`
  • Loading branch information
ajschmidt8 authored Feb 23, 2025
1 parent b9b49fb commit c136f94
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ tmp
bin/ad2-test
*~
.vscode
venv
.venv

0 comments on commit c136f94

Please sign in to comment.