-
Notifications
You must be signed in to change notification settings - Fork 30
75 lines (68 loc) · 2.06 KB
/
terrarium_check.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: terrarium_check
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
pull_request:
workflow_dispatch:
jobs:
pytest:
runs-on: [ self-hosted, linux ]
container:
image: "python:3.11.0"
strategy:
fail-fast: false
matrix:
value:
- bi_ci
- dl_repmanager
name: "🐊[pytest] ${{ matrix.value }}"
steps:
- name: 'Cleanup build folder'
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout code
uses: actions/checkout@v4
- run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Setup common tools
run: pip install --no-input poetry
# - run: poetry config virtualenvs.create false
- name: Install dependencies
run: |
cd "terrarium/${{ matrix.value }}"
poetry -v install --with pytest --without mypy
- name: Pytest
run: |
cd "terrarium/${{ matrix.value }}"
poetry run pytest .
mypy:
runs-on: [ self-hosted, linux ]
container:
image: "python:3.11.0"
strategy:
fail-fast: false
matrix:
value:
- bi_ci
- dl_repmanager
name: "🐊[mypy] ${{ matrix.value }}"
steps:
- name: 'Cleanup build folder'
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout code
uses: actions/checkout@v4
- run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Setup common tools
run: pip install --no-input poetry
# - run: poetry config virtualenvs.create false
- name: Install dependencies
run: |
cd "terrarium/${{ matrix.value }}"
poetry -v install --with mypy --without pytest
- name: Mypy
run: |
cd "terrarium/${{ matrix.value }}"
poetry run mypy .