-
Notifications
You must be signed in to change notification settings - Fork 285
43 lines (39 loc) · 1.06 KB
/
test_minimal_deps.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
name: Minimal Dependency Tests
on:
push:
paths-ignore:
- 'docs/**'
- 'examples/**'
- 'benchmarks/**'
pull_request:
paths-ignore:
- 'docs/**'
- 'examples/**'
- 'benchmarks/**'
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Cache Python Dependencies
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: minimal-env-${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('requirements/minimal_requirements.txt') }}
- name: Install Minimal Dependencies
run: pip install -r requirements/minimal_requirements.txt
- name: Install Package Without Dependencies
run: pip install --no-deps .
- name: Run Tests
run: |
export LIGHTLY_SERVER_LOCATION="localhost:-1"
python -m pytest -s -v --runslow