-
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.
migrated package flow to trigger on tag pushes instead of main pushes…
… to prevent version increments on PYPI for doc changes
- Loading branch information
Joshua Jamison (Codemation)
committed
Oct 13, 2021
1 parent
68e61de
commit bad17cb
Showing
2 changed files
with
108 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Test EasyRpc Core Functionality | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
test_easyrpc_core: | ||
# Containers must run in Linux based operating systems | ||
runs-on: ubuntu-latest | ||
# Docker Hub image that `container-job` executes in | ||
#container: joshjamison/python38:latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install pytest requests pytest-asyncio | ||
- name: Test EasyRpc Core Functionality | ||
run: | | ||
pytest tests/test_core.py | ||
test_easyrpc_cluster_1: | ||
# Containers must run in Linux based operating systems | ||
needs: test_easyrpc_core | ||
runs-on: ubuntu-latest | ||
# Docker Hub image that `container-job` executes in | ||
#container: joshjamison/python38:latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install pytest requests pytest-asyncio | ||
- name: Test EasyRpc Cluster Functionality - 1 | ||
run: | | ||
pytest tests/test_clustering_1.py | ||
test_easyrpc_cluster_2: | ||
needs: test_easyrpc_cluster_1 | ||
# Containers must run in Linux based operating systems | ||
runs-on: ubuntu-latest | ||
# Docker Hub image that `container-job` executes in | ||
#container: joshjamison/python38:latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install pytest requests pytest-asyncio | ||
- name: Test EasyRpc Cluster Functionality - 2 | ||
run: | | ||
pytest tests/test_clustering_2.py | ||
test_easyrpc_cluster_3: | ||
needs: test_easyrpc_cluster_2 | ||
# Containers must run in Linux based operating systems | ||
runs-on: ubuntu-latest | ||
# Docker Hub image that `container-job` executes in | ||
#container: joshjamison/python38:latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# Downloads a copy of the code in your repository before running CI tests | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install pytest requests pytest-asyncio | ||
- name: Test EasyRpc Cluster Functionality - 3 | ||
run: | | ||
pytest tests/test_clustering_3.py |