Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TitusSmith33 authored Nov 21, 2024
2 parents a80d679 + 4f7c312 commit dd23d3c
Show file tree
Hide file tree
Showing 25 changed files with 988 additions and 224 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[coverage:report]
skip_empty = true
[run]
relative_files=true
source=./execexam
[json]
show_contexts=True
pretty_print=True
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Bug Report
=======
---
name: Bug report
about: Create a report to help us improve
Expand Down
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

# Feature Request
=======
---
name: Feature request
about: Suggest an idea for this project
Expand Down
85 changes: 40 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Basic workflow
name: build

# Use more columns for terminal output
Expand Down Expand Up @@ -39,50 +38,46 @@ jobs:
python-version: "3.12"
- os: windows-latest
python-version: "3.12"

# Define the workflow steps
steps:
# Checkout the code of the repository
- name: Check out Repository Code
uses: actions/checkout@v3
with:
fetch-depth: 0
# 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.8.3
# Install dependencies
- name: Install dependencies
if: always()
run: |
poetry install
# Run the linters
- name: Run Linters
if: always()
run: |
# install ruff directly instead of managing
# it as a dependency with Poetry since ruff
# does not (always) install correctly
# through Poetry on NixOS
pipx install ruff
poetry run task lint
# Run the tests
- name: Run Tests
if: always()
run: |
# do not run the Hypothesis-based fuzz tests
# because they sometimes take longer to run
# on Windows and MacOS and this creates errors
poetry run task test-not-fuzz
- name: Check out Repository Code
uses: actions/checkout@v3
with:
fetch-depth: 0
# Setup Python for the current language version
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install pip
- name: Install Pip
run: |
python -m pip install --upgrade pip
# Install poetry
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.8.3
# Install dependencies
- name: Install dependencies
run: |
poetry install
# Run the linters
- name: Run Linters
run: |
pipx install ruff
poetry run task lint
# Run the tests
- name: Run Tests
run: |
poetry run task test-not-fuzz
# Run the tests and coverage
- name: Run Tests and Generate Coverage
run: |
poetry run pytest -s --cov=my_package --cov-report json:coverage.json
# Generate badges
- name: Generate Coverage and Version Badges
run: |
poetry run python scripts/badges.py
14 changes: 2 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
coverage.json
*,cover
.hypothesis/
*.mo
Expand Down Expand Up @@ -355,18 +356,6 @@ Temporary Items
# .txt files
*.txt

# pytest-cov htmlcov
htmlcov

# coverage report
.coveragereport.json

# coverage report
coverage.txt

# coverage report
coverage.json

# bash command history
.bash_history

Expand All @@ -375,3 +364,4 @@ credentials.json

# poetry.toml file
poetry.toml

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 🚀 ExecExam

<img src="https://i.ibb.co/vzjX7p2/exe.png" alt="logo" height="500">

[![coverage](https://img.shields.io/badge/coverage-20.86%25-brightgreen)](https://github.com/GatorEducator/execexam/actions)
[![Static Badge](https://img.shields.io/badge/Maintained%3F-yes-orange)](https://github.com/GatorEducator/execexam/commits/main/)
![version](https://img.shields.io/badge/version-0.3.0-blue)


ExecExam is a powerful tool that runs executable examinations in which a
student provides solutions to programming problems that are checked by Pytest
test suites. If you are a computer science or software engineering instructor
Expand Down
Loading

0 comments on commit dd23d3c

Please sign in to comment.