diff --git a/.github/workflows/main_automation.yml b/.github/workflows/main_automation.yml index 9829947f..464ceaa5 100644 --- a/.github/workflows/main_automation.yml +++ b/.github/workflows/main_automation.yml @@ -1,12 +1,6 @@ name: Stage/build/test/release/publish on: workflow_dispatch: - push: - branches: - - '*' - pull_request: - branches: - - '*' jobs: build_test: diff --git a/.github/workflows/requirements.txt b/.github/workflows/requirements.txt new file mode 100644 index 00000000..21615798 --- /dev/null +++ b/.github/workflows/requirements.txt @@ -0,0 +1,6 @@ +pytz>=2022 +six>=1 +python-dateutil>=2 +numpy>=1.24 +pandas>=1.5 +pandas-ta>=0.3 \ No newline at end of file diff --git a/.github/workflows/test_Python.yml b/.github/workflows/test_Python.yml new file mode 100644 index 00000000..8b7b9d50 --- /dev/null +++ b/.github/workflows/test_Python.yml @@ -0,0 +1,52 @@ +name: Python_included +on: + workflow_dispatch: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + build_test: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install .NET 7.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: | + 7.0.x + 5.0.x + include-prerelease: true + + - name: Install Python + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + check-latest: true + cache: 'pip' + cache-dependency-path: '**/requirements.txt' + - run: pip install -r worklflows/requirements.txt + + - name: Install JDK11 for Sonar Scanner + uses: actions/setup-java@v1 + with: + java-version: 1.11 + + - name: Install GitVersion + run: dotnet tool install GitVersion.Tool --global + - name: Install JetBrains + run: dotnet tool install JetBrains.dotCover.GlobalTool --global + - name: Install Sonar Scanner + run: dotnet tool install dotnet-sonarscanner --global + - name: Install dotnet-coverage + run: dotnet tool install dotnet-coverage --global + - name: Install CodeCov + run: dotnet tool install --global Codecov.Tool +