-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.46 KB
/
ci.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
name: ci-tracksuite
# Controls when the workflow will run
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
qa:
name: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
- run: pip install black flake8 isort
- run: isort --check .
- run: black --check .
- run: flake8 .
setup:
name: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install .
test:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Dummy User"
- run: python -m pip install .[test]
- run: python -m pytest . -v
debug:
name: debug
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Dummy User"
- run: python -m pip install .[test]
- run: ssh localhost; mkdir git_test; cd git_test; git init; touch test.txt; git add .; git commit -am 'dummy commit'; git log; git branch -v
- run: python -c 'import git; repo = git.Repo("git_test"); print(repo.git.log()); print(repo.heads)'