#43 JSON comparison with diff output #67
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
# This workflow will install Python dependencies, run tests and lint. | |
name: Test | |
on: | |
pull_request: | |
branches: [ "*" ] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
test: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: [ "3.10" ] | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- 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 ruff coverage | |
pip install -r requirements.txt | |
- name: Lint with ruff | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
ruff check . --select=E9,F63,F7,F82 --target-version=py310 | |
# default set of ruff rules with GitHub Annotations | |
ruff check . --target-version=py310 | |
- name: Unit Test Coverage | |
run: | | |
coverage run -m unittest discover -v -s tests/ -p 'test_*.py' | |
coverage report -m gauge_api_steps/*.py |