-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for pull requests (#76)
* 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
1 parent
b9b49fb
commit c136f94
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ tmp | |
bin/ad2-test | ||
*~ | ||
.vscode | ||
venv | ||
.venv |