Skip to content

Commit 8766434

Browse files
committed
[CI] Add publish
1 parent d287f84 commit 8766434

File tree

8 files changed

+556
-14
lines changed

8 files changed

+556
-14
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Triangular-Opportunity-Detector - Docker
1+
name: Triangular Arbitrage - Docker
22
on:
33
push:
44
branches:

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Triangular Arbitrage - CI
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
tags:
7+
- '*'
8+
pull_request:
9+
10+
jobs:
11+
lint:
12+
uses: Drakkar-Software/.github/.github/workflows/python3_lint_workflow.yml@master
13+
with:
14+
project_main_package: triangular_arbitrage
15+
16+
tests:
17+
needs: lint
18+
uses: Drakkar-Software/.github/.github/workflows/python3_tests_workflow.yml@master
19+
20+
publish:
21+
needs: tests
22+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
23+
uses: Drakkar-Software/.github/.github/workflows/python3_sdist_workflow.yml@master
24+
secrets:
25+
PYPI_OFFICIAL_UPLOAD_URL: ${{ secrets.PYPI_OFFICIAL_UPLOAD_URL }}
26+
PYPI_USERNAME: __token__
27+
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
28+
29+
notify:
30+
if: ${{ failure() }}
31+
needs:
32+
- lint
33+
- tests
34+
- publish
35+
uses: Drakkar-Software/.github/.github/workflows/failure_notify_workflow.yml@master
36+
secrets:
37+
DISCORD_GITHUB_WEBHOOK: ${{ secrets.DISCORD_GITHUB_WEBHOOK }}

dev_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest
2+
pylint

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tqdm
22
ccxt
33

4-
OctoBot-Commons
4+
OctoBot-Commons>=1.9, <1.10

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import find_packages
22
from setuptools import setup
33

4-
PROJECT_NAME = "Triangular-Arbitrage"
4+
PROJECT_NAME = "octobot_triangular_arbitrage"
55
VERSION = "0.0.1" # major.minor.revision
66

77
PACKAGES = find_packages(

0 commit comments

Comments
 (0)