forked from pydantic/pydantic
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (37 loc) · 1.13 KB
/
dependencies-check.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
name: Dependencies Check
on:
schedule:
- cron: '43 3 * * 6,3'
workflow_dispatch: {}
jobs:
find_dependency_cases:
runs-on: ubuntu-latest
outputs:
PYTHON_DEPENDENCY_CASES: ${{ steps.list-python-dependencies.outputs.PYTHON_DEPENDENCY_CASES }}
steps:
- uses: actions/checkout@v3
- uses: samuelcolvin/list-python-dependencies@main
id: list-python-dependencies
with:
mode: first-last
test:
name: test py${{ matrix.python-version }} on ${{ matrix.PYTHON_DEPENDENCY_CASE }}
needs:
- find_dependency_cases
strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.11']
PYTHON_DEPENDENCY_CASE: ${{ fromJSON(needs.find_dependency_cases.outputs.PYTHON_DEPENDENCY_CASES) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements/testing.txt
- run: pip install .
- run: pip install ${{ matrix.PYTHON_DEPENDENCY_CASE }}
- run: pip freeze
- run: make test