-
-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (53 loc) · 1.81 KB
/
tests.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
54
55
56
57
58
59
60
61
62
63
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests
on:
push:
paths-ignore:
- '**/*.md'
- '**/*.txt'
pull_request:
paths-ignore:
- '**/*.md'
- '**/*.txt'
jobs:
tests:
strategy:
matrix:
project-link:
- https://github.com/kritanta-ios-tweaks/Chapters
- https://github.com/kritanta-ios-tweaks/Pivot
- https://github.com/kritanta-ios-tweaks/Shakelight
- https://github.com/kritanta-ios-tweaks/Gravitation
- https://github.com/kritanta-ios-tweaks/Signe
- https://github.com/kritanta-ios-tweaks/StatusViz
- https://github.com/kritanta-ios-tweaks/DeadRinger
runs-on: macos-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
# Checkout relevant repo (e.g., main repo branch or fork)
REPO=${{ github.event.pull_request.head.repo.full_name }}
REF=${{ github.event.pull_request.head.ref }}
if [[ -z "$REPO" ]]; then
REPO=${{ github.repository }}
REF=${{ github.ref }}
fi
python -m pip install --upgrade pip
pip install "git+https://github.com/$REPO@$REF"
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dragon
run: |
dragon
- name: Clone project
run: |
git init .
git remote add origin ${{ matrix.project-link }}
git pull origin $(git remote show origin | grep "HEAD branch" | sed 's/.*: //')
- name: Build project
run: |
dragon c b