Skip to content

Commit

Permalink
Add workflow to run tests on pull request (#70)
Browse files Browse the repository at this point in the history
* Add workflow to run tests on pull request

Add workflow to run tests when PR is created or updated

* Update python version and os env

* Update run_tests.yml

* Update run_tests.yml

* Update run_tests.yml

* Update run_tests.yml

* Update run_tests.yml

* Add different python version and os environments

* Change trigger to pull request

* Fix os names

* Update run_tests.yml

* Update run_tests.yml
  • Loading branch information
Kishore-abhimanyu authored Oct 27, 2023
1 parent 11771d0 commit 7988d13
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run tests on pull request

on:
push:
pull_request:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .
pip install regex
- name: Run tests
run: |
cd easyPythonpi
python -m unittest test/*

0 comments on commit 7988d13

Please sign in to comment.