Skip to content

Commit 71ca307

Browse files
committed
Working on release workflow.
1 parent a85fe02 commit 71ca307

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/release.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
on:
22
workflow_dispatch:
33
push:
4-
tags:
5-
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
4+
5+
# tags:
6+
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
67

78
name: Creating release
89

910
env:
10-
CIBW_TEST_EXTRAS: test
11+
CIBW_BEFORE_TEST: "pip install -r requirements_test.txt"
1112
CIBW_TEST_COMMAND: "pytest {project}/tests"
1213
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"
1314
CIBW_ARCHS_MACOS: "x86_64 universal2"
14-
CIBW_BEFORE_BUILD_LINUX: "yum install -y gcc && curl -sL http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && tar -zxvf ta-lib-0.4.0-src.tar.gz && rm ta-lib-0.4.0-src.tar.gz && cd ta-lib && ./configure && make && make install"
15+
CIBW_BEFORE_BUILD: "pip install -r requirements_dev.txt"
16+
CIBW_BEFORE_BUILD_LINUX: "yum install -y gcc && curl -L -s http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -o ta.tar.gz && tar -zxvf ta.tar.gz && rm ta.tar.gz && cd ta-lib && ./configure && make && make install"
1517
CIBW_BEFORE_BUILD_MACOS: "brew install ta-lib"
1618
CIBW_BEFORE_BUILD_WINDOWS: "curl -sL http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip -o $HOME/ta-lib.zip --create-dirs && 7z x $HOME/ta-lib.zip -o/c/ta-lib && mv /c/ta-lib/ta-lib/* /c/ta-lib/ && rm -rf /c/ta-lib/ta-lib && cd /c/ta-lib/c/make/cdr/win32/msvc && nmake"
1719

@@ -32,18 +34,15 @@ jobs:
3234

3335
- name: Installing python build dependencies
3436
run: |
35-
python -m pip install --upgrade pip
36-
python -m pip install --upgrade setuptools
37+
python -m pip install --upgrade pip wheel
38+
python -m pip install -r requirements.txt
39+
python -m pip install -r requirements_test.txt
40+
pip install flake8 pytest
3741
3842
- name: Building source distribution
3943
run: |
40-
pip install -e ".[release]"
4144
python setup.py sdist
4245
43-
- name: Ensuring documentation builds
44-
run: |
45-
cd docs && make clean && make html
46-
4746
- uses: actions/upload-artifact@v2
4847
with:
4948
path: dist/*.tar.gz
@@ -58,7 +57,7 @@ jobs:
5857
os: [ubuntu-20.04, windows-2019, macos-10.15]
5958
# cp - CPython
6059
# pp - PyPy
61-
py: [cp37", "cp38", "cp39", "cp310", "pp37"]
60+
py: ["cp37", "cp38", "cp39", "cp310", "pp37"]
6261

6362
steps:
6463
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)