Skip to content

Commit

Permalink
migrated package flow to trigger on tag pushes instead of main pushes…
Browse files Browse the repository at this point in the history
… to prevent version increments on PYPI for doc changes
  • Loading branch information
Joshua Jamison (Codemation) committed Oct 13, 2021
1 parent 68e61de commit bad17cb
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Package
name: Package and Push to PyPI
on:
push:
branches:
- main
tags:
- "*"
jobs:
test_easyrpc_core:
# Containers must run in Linux based operating systems
Expand Down
105 changes: 105 additions & 0 deletions .github/workflows/test_flows.yaml
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

0 comments on commit bad17cb

Please sign in to comment.