Skip to content

Commit 9fb4b5d

Browse files
committed
feat(ci): add pull request action and pytest.ini
1 parent 47e9402 commit 9fb4b5d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: extras PR test
2+
3+
run-name: ${{ github.actor }} is testing
4+
5+
on:
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: ['3.10']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pytest==7.4.0
27+
- name: Test
28+
run: |
29+
pytest

.pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
minversion = 7.4
3+
addopts = -ra -q
4+
testpaths = tests

0 commit comments

Comments
 (0)