-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (94 loc) · 4.63 KB
/
Copy pathworkflow.yml
File metadata and controls
95 lines (94 loc) · 4.63 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: workflow
on:
push:
branches:
- master
jobs:
unittest:
if: contains(github.event.head_commit.message, '[CI SKIP]') == false && contains(github.event.head_commit.message, '[CI AUTO]') == false
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9]
os: [windows-latest, ubuntu-latest]
steps:
- name: Set up Git SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.GIT_SSH }}
- name: Set up python version ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install necessities pip, setuptools, wheel, twine
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Install and clone 7 git repos
run: |
pip install git+ssh://git@github.com/ManderaGeneral/generallibrary.git
pip install git+ssh://git@github.com/ManderaGeneral/generalfile.git
pip install git+ssh://git@github.com/ManderaGeneral/generalvector.git
pip install git+ssh://git@github.com/ManderaGeneral/generalgui.git
pip install git+ssh://git@github.com/ManderaGeneral/generalbrowser.git
pip install git+ssh://git@github.com/ManderaGeneral/generalmainframe.git
pip install git+ssh://git@github.com/ManderaGeneral/generalpackager.git
git clone ssh://git@github.com/ManderaGeneral/generallibrary.git
git clone ssh://git@github.com/ManderaGeneral/generalfile.git
git clone ssh://git@github.com/ManderaGeneral/generalvector.git
git clone ssh://git@github.com/ManderaGeneral/generalgui.git
git clone ssh://git@github.com/ManderaGeneral/generalbrowser.git
git clone ssh://git@github.com/ManderaGeneral/generalmainframe.git
git clone ssh://git@github.com/ManderaGeneral/generalpackager.git
git clone ssh://git@github.com/Mandera/Mandera.git
git clone ssh://git@github.com/ManderaGeneral/.github.git
- name: Run Packager method 'workflow_unittest'
run: |
python -c "from generalpackager import Packager; Packager('generalpackager').workflow_unittest()"
env:
PACKAGER_GITHUB_API: ${{ secrets.PACKAGER_GITHUB_API }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
MANDERAGENERAL_TOKEN: ${{ secrets.MANDERAGENERAL_TOKEN }}
sync:
needs: unittest
runs-on: ubuntu-latest
steps:
- name: Set up Git SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.GIT_SSH }}
- name: Set up python version 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install necessities pip, setuptools, wheel, twine
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Install and clone 7 git repos
run: |
pip install git+ssh://git@github.com/ManderaGeneral/generallibrary.git
pip install git+ssh://git@github.com/ManderaGeneral/generalfile.git
pip install git+ssh://git@github.com/ManderaGeneral/generalvector.git
pip install git+ssh://git@github.com/ManderaGeneral/generalgui.git
pip install git+ssh://git@github.com/ManderaGeneral/generalbrowser.git
pip install git+ssh://git@github.com/ManderaGeneral/generalmainframe.git
pip install git+ssh://git@github.com/ManderaGeneral/generalpackager.git
git clone ssh://git@github.com/ManderaGeneral/generallibrary.git
git clone ssh://git@github.com/ManderaGeneral/generalfile.git
git clone ssh://git@github.com/ManderaGeneral/generalvector.git
git clone ssh://git@github.com/ManderaGeneral/generalgui.git
git clone ssh://git@github.com/ManderaGeneral/generalbrowser.git
git clone ssh://git@github.com/ManderaGeneral/generalmainframe.git
git clone ssh://git@github.com/ManderaGeneral/generalpackager.git
git clone ssh://git@github.com/Mandera/Mandera.git
git clone ssh://git@github.com/ManderaGeneral/.github.git
- name: Run Packager method 'workflow_sync'
run: |
python -c "from generalpackager import Packager; Packager('generalpackager').workflow_sync()"
env:
PACKAGER_GITHUB_API: ${{ secrets.PACKAGER_GITHUB_API }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
MANDERAGENERAL_TOKEN: ${{ secrets.MANDERAGENERAL_TOKEN }}