-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43c81b3
commit 1743f0a
Showing
44 changed files
with
520 additions
and
6,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Build and Publish Anaconda | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_conda_packages: | ||
name: Build conda on ${{ matrix.os }} with Python ${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-11] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
exclude: | ||
- os: windows-2019 | ||
python-version: "3.12" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Conda environment creation and activation | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: environment.yml | ||
auto-update-conda: false | ||
auto-activate-base: false | ||
show-channel-urls: true | ||
|
||
- name: Install Conda Tools | ||
run: | | ||
conda update --all | ||
conda install -c conda-forge conda-build | ||
conda install conda-verify | ||
conda install -c anaconda anaconda-client | ||
- name: Configure PATH | ||
run: echo "$CONDA/bin" >> $GITHUB_PATH | ||
|
||
- name: Install Python Tools | ||
run: | | ||
pip install setuptools wheel --upgrade | ||
- name: Install macOS SDK (only on macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
sudo mkdir -p /opt/MacOSX10.10.sdk | ||
sudo curl -L -o MacOSX10.10.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz | ||
sudo tar -xJf MacOSX10.10.sdk.tar.xz -C /opt/ | ||
- name: Set CONDA_BUILD_SYSROOT (only on macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo "CONDA_BUILD_SYSROOT: /opt/MacOSX10.10.sdk # [osx]" > conda_build_config.yaml | ||
- name: "conda search: lucit::" | ||
run: | | ||
conda config --add channels conda-forge | ||
conda config --add channels lucit | ||
conda config --show channels | ||
conda search lucit::lucit-licensing-python | ||
conda search lucit::unicorn-binance-rest-api | ||
conda search lucit::unicorn-binance-websocket-api | ||
conda search lucit::unicorn-fy | ||
- name: Build and upload the conda packages | ||
uses: uibcdf/[email protected] | ||
with: | ||
meta_yaml_dir: . | ||
overwrite: False | ||
python-version: ${{ matrix.python-version }} | ||
user: lucit | ||
label: main | ||
token: ${{ secrets.ANACONDA_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Build and Publish GH+PyPi | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CIBW_PYPY_VERSION: "7.3.10*" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-11] | ||
steps: | ||
- name: GitHub Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Set up Environment | ||
run: echo "CIBW_SKIP=pp36-* pp37-*" >> $GITHUB_ENV | ||
|
||
- name: Check ENV | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: echo $PATH | ||
|
||
- name: Build wheels Linux | ||
if: matrix.os == 'ubuntu-20.04' | ||
uses: pypa/[email protected] | ||
|
||
- name: Build wheels Mac | ||
if: matrix.os == 'macos-11' | ||
uses: pypa/[email protected] | ||
|
||
- name: Build wheels Windows | ||
if: matrix.os == 'windows-2019' | ||
uses: pypa/[email protected] | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: GitHub Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
Release: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
environment: pypi | ||
permissions: | ||
contents: write | ||
discussions: write | ||
id-token: write | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body: | | ||
Please read the [CHANGELOG](https://unicorn-binance-trailing-stop-loss.docs.lucit.tech/changelog.html) for further information. | ||
discussion_category_name: releases | ||
draft: false | ||
files: | | ||
dist/*.tar.gz | ||
dist/*.whl | ||
generate_release_notes: true | ||
name: unicorn-binance-trailing-stop-loss | ||
prerelease: false | ||
tag_name: 0.8.0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create PyPi Release | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.