refactor push module and include gftools manage traffic jam #1023
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DEV_FAMILY_DOWNLOAD: ${{ secrets.DEV_FAMILY_DOWNLOAD }} | |
DEV_META_URL: ${{ secrets.DEV_META_URL }} | |
DEV_URL: ${{ secrets.DEV_URL }} | |
PRODUCTION_META_URL: ${{ secrets.PRODUCTION_META_URL }} | |
PRODUCTION_URL: ${{ secrets.PRODUCTION_URL}} | |
SANDBOX_FAMILY_DOWNLOAD: ${{ secrets.SANDBOX_FAMILY_DOWNLOAD }} | |
SANDBOX_META_URL: ${{ secrets.SANDBOX_META_URL }} | |
SANDBOX_URL: ${{ secrets.SANDBOX_URL }} | |
TRAFFIC_JAM_ID: ${{ secrets.TRAFFIC_JAM_ID }} | |
STATUS_FIELD_ID: ${{ secrets.STATUS_FIELD_ID }} | |
LIST_FIELD_ID: ${{ secrets.LIST_FIELD_ID }} | |
PR_GF_ID: ${{ secrets.PR_GF_ID }} | |
IN_DEV_ID: ${{ secrets.IN_DEV_ID }} | |
IN_SANDBOX_ID: ${{ secrets.IN_SANDBOX_ID }} | |
LIVE_ID: ${{ secrets.LIVE_ID }} | |
TO_SANDBOX_ID: ${{ secrets.TO_SANDBOX_ID }} | |
TO_PRODUCTION_ID: ${{ secrets.TO_PRODUCTION_ID }} | |
BLOCKED_ID: ${{ secrets.BLOCKED_ID }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
platform: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: | | |
pip install '.[qa]' | |
pip install mypy pytest | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
- name: Run Tests | |
run: | | |
pytest tests | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 |