-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.14 KB
/
python-tests.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
name: Python Tests
on:
push:
branches:
- '*'
- '!main'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup py installation
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependancies
run: pip install PyQt5 opencv-python numpy pillow scipy matplotlib pytest
- name: Run tests
run: pytest -s test/test_ecosystem.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Auto PR
title: Automated PR
body: Created by a development branch
branch: main
- name: Merge Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Merge PR
title: Merge Pull Request
body: This PR was automatically merged.
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete Branch
run: |
git push --delete origin ${{ github.ref }}
if: success()