-
Notifications
You must be signed in to change notification settings - Fork 19
53 lines (49 loc) · 1.33 KB
/
tests-pip.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: pytest-pip
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.11]
os: [ubuntu-latest, windows-latest]
name: "Test: Python ${{ matrix.python-version }}, pip, ${{ matrix.os }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
run: |
pytest tests
version-check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.6]
os: [ubuntu-20.04]
name: "Version Check: Python ${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Cookiecutter
run: |
python -m pip install --upgrade pip
pip install cookiecutter~=1.7.2
- name: Run Version Check
run: |
python tests/version_check.py --fail