-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support numpy>=1.20.0 * Github actions --------- Co-authored-by: ekzhu <[email protected]>
- Loading branch information
1 parent
58b39e6
commit 1f70dac
Showing
8 changed files
with
186 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Documentation | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Test", "Test Mongo", "Test Cassandra"] | ||
types: | ||
- completed | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
- name: Install package | ||
run: | | ||
# Disable Cassandra optional extensions (faster testing). | ||
export CASS_DRIVER_NO_EXTENSIONS=1 | ||
pip install -e . | ||
- name: Compile documentation | ||
run: | | ||
python -m pip install sphinx | ||
cd docs | ||
make html | ||
- name: Deploy to GitHub pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/_build/html | ||
CLEAN: true |
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 was deleted.
Oops, something went wrong.
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,53 @@ | ||
name: Test Cassandra | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Test | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.11"] | ||
services: | ||
cassandra: | ||
image: cassandra | ||
ports: | ||
- 9042:9042 | ||
options: --health-cmd "cqlsh --debug" --health-interval 5s --health-retries 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# - name: Setup Cassandra | ||
# uses: fabasoad/[email protected] | ||
# - name: Install and Start Cassandra | ||
# run: | | ||
# echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list | ||
# curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - | ||
# sudo apt-get update | ||
# sudo apt-get install openjdk-8-jdk | ||
# java -version | ||
# sudo apt-get install cassandra cython3 | ||
# bash travis/wait_for_cassandra.sh | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Install package | ||
run: | | ||
# Disable Cassandra optional extensions (faster testing). | ||
export CASS_DRIVER_NO_EXTENSIONS=1 | ||
pip install -e .[test,experimental_aio] | ||
- name: Test with pytest | ||
run: | | ||
export DO_TEST_CASSANDRA=true | ||
pytest |
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,42 @@ | ||
name: Test Mongo | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Test | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.11"] | ||
# services: | ||
# mongo: | ||
# image: mongo | ||
# ports: | ||
# - 27017:27017 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup MongoDB | ||
uses: supercharge/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
- name: Install package | ||
run: | | ||
# Disable Cassandra optional extensions (faster testing). | ||
export CASS_DRIVER_NO_EXTENSIONS=1 | ||
pip install -e .[test,experimental_aio] | ||
- name: Test with pytest | ||
run: | | ||
export DO_TEST_MONGO=true | ||
pytest |
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,30 @@ | ||
name: Test | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Install package | ||
run: | | ||
# Disable Cassandra optional extensions (faster testing). | ||
export CASS_DRIVER_NO_EXTENSIONS=1 | ||
pip install -e .[test,experimental_aio] | ||
- name: Test with pytest | ||
run: | | ||
pytest |
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