-
Notifications
You must be signed in to change notification settings - Fork 18
37 lines (33 loc) · 998 Bytes
/
main.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
name: Triangular Arbitrage - CI
on:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
jobs:
lint:
uses: Drakkar-Software/.github/.github/workflows/python3_lint_workflow.yml@master
with:
project_main_package: triangular_arbitrage
tests:
needs: lint
uses: Drakkar-Software/.github/.github/workflows/python3_tests_workflow.yml@master
publish:
needs: tests
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: Drakkar-Software/.github/.github/workflows/python3_sdist_workflow.yml@master
secrets:
PYPI_OFFICIAL_UPLOAD_URL: ${{ secrets.PYPI_OFFICIAL_UPLOAD_URL }}
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
notify:
if: ${{ failure() }}
needs:
- lint
- tests
- publish
uses: Drakkar-Software/.github/.github/workflows/failure_notify_workflow.yml@master
secrets:
DISCORD_GITHUB_WEBHOOK: ${{ secrets.DISCORD_GITHUB_WEBHOOK }}