-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.51 KB
/
workflow_dev.yml
File metadata and controls
46 lines (42 loc) · 1.51 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
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', '3.12']
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@v5
with:
python-version: '${{ matrix.python-version }}'
- name: Install necessities
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Clone 1 repo
run: |
mkdir repos
cd repos
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
- name: Install 1 repo
run: |
cd repos
pip install -e generaltool[full]
- name: Run unittests
run: |
cd repos/generaltool/generaltool/test
python -m unittest discover -v