forked from google-gemini/generative-ai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e72770
commit b464e20
Showing
1 changed file
with
54 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,54 @@ | ||
# Notebook-related checks | ||
|
||
name: Run all tests | ||
|
||
on: | ||
# Relevant PRs | ||
pull_request: | ||
paths: | ||
- "google/**" | ||
- "tests/**" | ||
# Allow manual runs | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test3_11: | ||
name: py 3.11 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Run tests | ||
run: | | ||
python --version | ||
pip install -q -e .[dev] | ||
python -m unittest discover --pattern '*test*.py' | ||
test3_10: | ||
name: py 3.10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Run tests | ||
run: | | ||
python --version | ||
pip install -q -e .[dev] | ||
python -m unittest discover --pattern '*test*.py' | ||
test3_9: | ||
name: py 3.9 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Run tests | ||
run: | | ||
python --version | ||
pip install -q -e .[dev] | ||
python -m unittest discover --pattern '*test*.py' | ||