Skip to content

Commit 007841c

Browse files
Create run_tests.yml
1 parent a9fd5fd commit 007841c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/run_tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Run tests
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ${{ matrix.os }}
15+
timeout-minutes: 20
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
python-version:
21+
- '3.12'
22+
- '3.11'
23+
- '3.10'
24+
- '3.9'
25+
- '3.8'
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install -r requirements.txt
36+
pip install -r tests/requirements.txt
37+
- name: Run static analysis lint
38+
uses: pre-commit/[email protected]
39+
- name: Run pytest
40+
shell: bash
41+
run: |
42+
export PYTHONPATH=.
43+
pytest tests/

0 commit comments

Comments
 (0)