8000 Add testing github action · python-rope/ropemode@dbd6a8c · GitHub
[go: up one dir, main page]

Skip to content

Commit dbd6a8c

Browse files
committed
Add testing github action
1 parent b852913 commit dbd6a8c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
tests:
7+
name: "Python ${{ matrix.python-version }}"
8+
runs-on: "ubuntu-latest"
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10"]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install package
20+
run: pip install .
21+
- name: Install test requirements
22+
run: pip install -r test-requirements.txt
23+
- name: Run tests
24+
run: pytest

0 commit comments

Comments
 (0)
0