-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (71 loc) · 2.37 KB
/
.github-ci.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
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
name: Python CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
# TODO faudra git fetch le head
renovate:
name: Renovate
runs-on: ubuntu-latest
concurrency: renovate
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha') && (github.event_name == 'push' || github.event_name == 'pull_request') && !contains(github.event.head_commit.message, 'chore(deps):')
steps:
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc
- uses: ./.github/actions/renovate
dependencies:
name: Install Dependencies
needs: [renovate]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc
- uses: ./.github/actions/cache
quality:
name: Quality
needs: [dependencies]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc
- uses: ./.github/actions/cache
- uses: ./.github/actions/pre-commit
- uses: ./.github/actions/bandit
- uses: ./.github/actions/pylama
tests:
name: Coverage
needs: [dependencies]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc
- uses: ./.github/actions/cache
- uses: ./.github/actions/coverage # TODO réparer cette fonction
release:
name: Release
runs-on: ubuntu-latest
concurrency: release
needs: [dependencies, quality, tests]
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !contains(github.event.head_commit.message, 'chore(release):')
steps:
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc
with:
fetch-depth: 0
fetch-tags: true
- uses: ./.github/actions/cache
- uses: ./.github/actions/semantic-release
# TODO continuer ça
# - name: Configure git
# run: |
# git config user.name github-actions
# git config user.email
# - name: Run python semantic release
# run: |
# poetry run semantic-release changelog --post
# poetry run semantic-release version
# - name: Publish semver
# run: poetry run semantic-release publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
# # semantic