Skip to content

chore: Add a TODO marker to the listmutator/listmutator/main.py file. #1

chore: Add a TODO marker to the listmutator/listmutator/main.py file.

chore: Add a TODO marker to the listmutator/listmutator/main.py file. #1

Workflow file for this run

# Basic workflow
name: build
# Use more columns for terminal output
env:
COLUMNS: 120
PYTHONIOENCODING: utf8
# Controls when the action will run
# Workflow begins with push or PR events
# Focuses on the main branch only
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Create one single job
# This job performs all of the necessary checks
jobs:
build:
# do not allow a build to run for more than 5 minutes
timeout-minutes: 5
# Use the latest version of Ubuntu, MacOS, and Windows
# Use the latest and most stable version of Python
# Important: test coverage monitoring and reporting
# through a badge and the GitHub Actions job summary
# only takes place with the Linux operating system.
# Important: the MacOS and Windows operating systems
# have test coverage calculation take place but they
# do not report the test coverage beyond its display
# inside of the GitHub Actions panel for that job.
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
include:
- os: macos-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.11"
# Define the workflow steps
steps:
# Checkout the code of the repository
- name: Check out Repository Code
uses: actions/checkout@v3
with:
fetch-depth: 0
# Run the mdl linting tool
# Refers to .mdlrc file in repository
- name: Run Markdown Linting
if: matrix.os == 'ubuntu-latest'
uses: actionshub/markdownlint@main
# Setup Python for the current language version
- name: Setup Python ${{ matrix.python-version }}
if: always()
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install pip
- name: Install Pip
if: always()
run: |
python -m pip install --upgrade pip
# Install poetry
- name: Install Poetry
if: always()
uses: abatilo/[email protected]
with:
poetry-version: 1.7.1
# Install dependencies
- name: Install dependencies
if: always()
run: |
cd listmutator
poetry install
# Run the program
- name: Run program
if: always() && matrix.os == 'ubuntu-latest'
run: |
cd listmutator
poetry run listmutator --operation add --startsize 10000 --runs 10 --listtype singlylinked
# Run GatorGrader: see config/gatorgrade.yml
- name: Run GatorGrader with GatorGrade
if: always() && matrix.os == 'ubuntu-latest'
run: |
pip install gatorgrade
gatorgrade --config config/gatorgrade.yml --report env md GITHUB_STEP_SUMMARY