-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.06 KB
/
test-pytest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: pytest
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**.py"
- ".github/**"
- "pyproject.toml"
- "requirements*"
jobs:
run_pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.9, 3.12]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build package
run: |
python -m pip install --upgrade pip
pip install .
- name: Import package
run: |
python -c "import sys, rocketserializer; print(f'{rocketserializer.__name__} running on Python {sys.version}')"
- name: Install dev dependencies
run: |
pip install -r requirements-dev.txt
# - name: Run pytest
# run: |
# pytest