Skip to content

Commit 7988d13

Browse files
Add workflow to run tests on pull request (#70)
* 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
1 parent 11771d0 commit 7988d13

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run tests on pull request
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python version ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
pip install .
25+
pip install regex
26+
- name: Run tests
27+
run: |
28+
cd easyPythonpi
29+
python -m unittest test/*

0 commit comments

Comments
 (0)