-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
988 additions
and
224 deletions.
There are no files selected for viewing
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
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 |
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
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 | ||
|
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
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: '' | ||
|
||
--- | ||
|
||
|
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
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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Basic workflow | ||
name: build | ||
|
||
# Use more columns for terminal output | ||
|
@@ -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 |
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 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
Oops, something went wrong.