Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.82 KB

File metadata and controls

35 lines (21 loc) · 1.82 KB

CI Pipeline

Testing Across Python Versions Using GitHub Actions

Project Summary

This project leverages GitHub Actions to test compatibility across various Python versions. By utilizing the setup-python action and a matrix strategy, multiple jobs are executed under different configurations. The script main.py plays a key role in identifying the operating system and Python version for each job.

Setup Guide

  1. Clone the repository to your local machine.
  2. Set up the container environment or run make install to install dependencies from requirements.txt.
  3. Update or modify files like main.py or test_main.py as needed.
  4. Push your changes, which will automatically trigger tests on different OS and Python configurations.

Code Style and Error Checking

  1. Ensure consistent code formatting by running make format.

Example of a formatting run:

Code Formatting Example

  1. Detect potential issues by running make lint.

Example of linting results:

Linting Example

  1. Run the test suite using make test.

Example of test execution:

Test Execution Example

Using a Matrix Strategy in GitHub Actions

Matrix Build Example