Skip to content

Commit 1c6dc41

Browse files
committed
update tests for new location and Update dependencies.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent b2f3d94 commit 1c6dc41

157 files changed

Lines changed: 91 additions & 133 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4747
"remoteUser": "vscode",
4848
"features": {
49-
"powershell": "latest"
49+
"powershell": "latest",
50+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
51+
"ghcr.io/itsmechlark/features/act:1": {}
5052
}
5153
}

.github/workflows/compare_score.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import requests
55
from dotenv import load_dotenv
6-
from dotenv import load_dotenv
76

87
try:
98

@@ -20,7 +19,7 @@
2019

2120
# set by pytest in custom conftest reporting
2221
new_scores = {}
23-
with open("coverage/snippet_score.json", "r") as f:
22+
with open("results/snippet_score.json", "r") as f:
2423
new_scores = json.load(f)
2524

2625

.github/workflows/list_versions.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""
2+
This module retrieves the versions of Micropython from the Micropython repository on GitHub.
3+
It is used to generate a matrix of versions to create stubs for using Github Actions.
4+
5+
It provides a function `micropython_versions` that returns a list of versions starting from a specified version.
6+
The module also includes a main block that generates a matrix of versions based on command-line arguments and environment variables.
7+
The matrix is printed as JSON and can be optionally written to a file if running in a GitHub Actions workflow.
8+
"""
9+
import json
10+
import os
11+
import sys
12+
13+
from github import Github
14+
from packaging.version import parse
15+
16+
...
117
import json
218
import os
319
import sys

.vscode/settings.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
{
22
"workbench.colorCustomizations": {
3-
"activityBar.activeBorder": "#422c74",
4-
"activityBar.activeBackground": "#2f7c47",
5-
"activityBar.background": "#2f7c47",
6-
"activityBar.foreground": "#e7e7e7",
7-
"activityBar.inactiveForeground": "#e7e7e799",
8-
"activityBarBadge.background": "#422c74",
9-
"activityBarBadge.foreground": "#e7e7e7",
10-
"commandCenter.border": "#e7e7e799",
11-
"editorGroup.border": "#2f7c47",
12-
"panel.border": "#2f7c47",
13-
"sash.hoverBorder": "#2f7c47",
14-
"statusBar.background": "#215732",
15-
"statusBar.foreground": "#e7e7e7",
16-
"statusBarItem.hoverBackground": "#2f7c47",
17-
"statusBarItem.remoteBackground": "#215732",
18-
"statusBarItem.remoteForeground": "#e7e7e7",
19-
"tab.activeBorder": "#2f7c47",
20-
"titleBar.activeBackground": "#215732",
21-
"titleBar.activeForeground": "#e7e7e7",
22-
"titleBar.inactiveBackground": "#21573299",
23-
"titleBar.inactiveForeground": "#e7e7e799"
3+
"activityBar.activeBorder": "#422c74"
244
},
255
"peacock.color": "#215732",
266
"cSpell.words": [

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ python_functions = ["test_", "*_test"]
2323
python_files = ["test_*.py", "*_test.py"]
2424
testpaths = ["quality_tests"]
2525
norecursedirs = [
26+
"publish",
27+
"stubs",
2628
"repos",
2729
"typings*",
2830
".svn",

requirements-stats.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# download reporting
2+
ipykernel
3+
google-cloud-bigquery==3.12.0
4+
pandas
5+
matplotlib
6+
ipywidgets
7+
ipympl # interactive matplotlib figures in jupyter
8+
9+
# keyring # for storing credentials
10+

requirements.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

statistics/read_stats.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

statistics/report-stats.ipynb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# 2) Report download statistics\n",
8+
"\n",
9+
"This Jupyter Notebook contains code and analysis for analyzing and visualizing data from a CSV file. The notebook utilizes the pandas library to read and manipulate the data, and the matplotlib library to create various types of graphs and visualizations.\n",
10+
"\n",
11+
"The notebook is organized into multiple cells, each serving a specific purpose. The cells include importing necessary libraries, reading the CSV file, performing data manipulation and analysis, and creating different types of graphs and visualizations.\n",
12+
"\n",
13+
"The goal of this notebook is to provide a step-by-step guide for analyzing and visualizing data from a CSV file using Python and Jupyter Notebook. \n",
14+
"\n",
15+
"Please execute the cells in sequential order to ensure the proper execution of the code and generation of the desired visualizations.\n",
16+
"\n",
17+
"\n",
18+
"#### Dependencies\n",
19+
"Please note that this notebook requires the installation of the necessary dependencies, such as pandas, matplotlib, and the Google Big Query SDK.\n",
20+
"\n",
21+
"see [requirements-stats.txt](../requirements-stats.txt) for a list of dependencies."
22+
]
23+
},
324
{
425
"cell_type": "code",
5-
"execution_count": 6,
26+
"execution_count": null,
627
"metadata": {},
728
"outputs": [],
829
"source": [

statistics/stats_v1.pbix

-53.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)