-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 2.67 KB
/
workflow_dev.yml
File metadata and controls
52 lines (48 loc) · 2.67 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
name: WorkflowDev
on:
push:
branches-ignore:
- master
- main
defaults:
run:
working-directory: ../../main
jobs:
dev_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', '3.10', '3.11']
os: [windows-latest, ubuntu-latest]
steps:
- name: Create folder
working-directory: ../../
run: mkdir main
- name: Set up python version ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
- name: Install necessities
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Clone 4 repos
run: |
mkdir repos
cd repos
git clone https://github.com/${{ github.repository_owner }}/generalimport.git -b ${{ github.ref_name }} || git clone https://github.com/${{ github.repository_owner }}/generalimport.git || git clone https://github.com/ManderaGeneral/generalimport.git -b ${{ github.ref_name }} || git clone https://github.com/ManderaGeneral/generalimport.git
git clone https://github.com/${{ github.repository_owner }}/generaltool.git -b ${{ github.ref_name }} || git clone https://github.com/${{ github.repository_owner }}/generaltool.git || git clone https://github.com/ManderaGeneral/generaltool.git -b ${{ github.ref_name }} || git clone https://github.com/ManderaGeneral/generaltool.git
git clone https://github.com/${{ github.repository_owner }}/generallibrary.git -b ${{ github.ref_name }} || git clone https://github.com/${{ github.repository_owner }}/generallibrary.git || git clone https://github.com/ManderaGeneral/generallibrary.git -b ${{ github.ref_name }} || git clone https://github.com/ManderaGeneral/generallibrary.git
git clone https://github.com/${{ github.repository_owner }}/generalvector.git -b ${{ github.ref_name }} || git clone https://github.com/${{ github.repository_owner }}/generalvector.git || git clone https://github.com/ManderaGeneral/generalvector.git -b ${{ github.ref_name }} || git clone https://github.com/ManderaGeneral/generalvector.git
- name: Install 4 repos
run: |
cd repos
pip install -e generalimport[full]
pip install -e generaltool[full]
pip install -e generallibrary[full]
pip install -e generalvector[full]
- name: Run unittests
run: |
cd repos/generalvector/generalvector/test
python -m unittest discover -v