Skip to content

Add post-maintenance reconnect helper for GMO Coin #47

Add post-maintenance reconnect helper for GMO Coin

Add post-maintenance reconnect helper for GMO Coin #47

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: pip
- name: Install Hatch
run: |
pipx install hatch
- name: Lint with ruff
run: |
hatch run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: pip
- name: Install Hatch
run: |
pipx install hatch
- name: Build package
run: |
hatch build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Hatch
run: |
pipx install hatch
- name: Run test suites
run: |
hatch run all.py${{ matrix.python-version }}:test-cov
- name: Upload .coverage file
uses: actions/upload-artifact@v4
with:
name: .coverage.${{ matrix.python-version }}
path: .coverage.*
coverage:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: pip
- name: Install Hatch
run: |
pipx install hatch
- name: Download .coverage file
uses: actions/download-artifact@v4
with:
pattern: .coverage.*
merge-multiple: true
- name: Combine coverage reports
run: |
hatch run coverage combine
hatch run coverage html --fail-under=0
hatch run coverage report --fail-under=0 --format=markdown -m >> $GITHUB_STEP_SUMMARY
hatch run coverage report
- name: Upload htmlcov
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: htmlcov
path: htmlcov/