Skip to content

Commit

Permalink
Add a GH action to run the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust committed May 26, 2023
1 parent 7e72770 commit b464e20
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test_pr.yaml
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'

0 comments on commit b464e20

Please sign in to comment.