Skip to content

Commit dbaa99c

Browse files
authored
Create python-test.yml
1 parent 99524ec commit dbaa99c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/python-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test Python Package
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: ["3.6", "3.9", "3.10", "3.11", "3.12"]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python ${{ matrix.python-vesion }}
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: ${{ matrix.python-version }}
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
python -m pip install -r requirements.txt
19+
- name: Test with pytest
20+
run: pytest

0 commit comments

Comments
 (0)