Skip to content

Commit 8bc87a2

Browse files
authored
Merge pull request #62 from TrueLearnAI/release-1.0.0
Release TrueLearn 1.0.0
2 parents ee5ef54 + 5228cd1 commit 8bc87a2

File tree

11 files changed

+73
-27
lines changed

11 files changed

+73
-27
lines changed

.github/workflows/black.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout Actions Repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v3.5.2
2424

2525
- name: Check format of TrueLearn
2626
uses: psf/black@stable
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Cleans up a GitHub PR as we use deployments to share data between jobs (for python_publish.yml)
3+
# Code from https://github.com/strumwolf/delete-deployment-environment
4+
#
5+
name: 🧼 Clean up environment deployments
6+
on:
7+
workflow_dispatch:
8+
9+
# To share the secrets between jobs for our Python Publish Action, we need to use
10+
# an environment which creates multiple deployments.
11+
# This action cleans up the GitHub PR when the deployments are no longer needed.
12+
workflow_run:
13+
workflows: ["Spell Check"]
14+
types:
15+
- completed
16+
17+
jobs:
18+
cleanup:
19+
runs-on: ubuntu-latest
20+
permissions: write-all
21+
22+
steps:
23+
- uses: actions/[email protected]
24+
25+
# Points to a recent commit instead of `main` to avoid supply chain attacks.
26+
- name: 🎟 Get GitHub App token
27+
uses: navikt/[email protected]
28+
id: get-token
29+
with:
30+
app-id: ${{ secrets.DEPLOYMENT_TOKEN_APP_ID }}
31+
private-key: ${{ secrets.DEPLOYMENT_TOKEN_PRIVATE_KEY }}
32+
33+
# The behaviour of this action as configured is:
34+
# ✔️ Deactivates deployment
35+
# ✔️ Removes from deployments tab
36+
# ❌ Removes from environment tab in settings (we want to keep our environments)
37+
- name: 🗑 Delete deployment environment
38+
uses: strumwolf/[email protected]
39+
with:
40+
# Use a JWT created with your GitHub App's private key
41+
# ⚠️ The provided token needs permission for admin write:org
42+
token: ${{ steps.get-token.outputs.token }}
43+
environment: testing
44+
onlyRemoveDeployments: true

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v3.5.2
3131

3232
- name: Setup Python
33-
uses: actions/setup-python@v4.4.0
33+
uses: actions/setup-python@v4.5.0
3434
with:
3535
python-version: "3.7"
3636
cache: "pip" # cache dependencies

.github/workflows/python_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444
needs: [unit_tests, static_analysis, format_check, typo_check]
4545
if: success()
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v3.5.2
4848

4949
- name: Set up Python
50-
uses: actions/setup-python@v3
50+
uses: actions/setup-python@v4.5.0
5151
with:
5252
python-version: "3.7"
5353

.github/workflows/static_analysis.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v3.5.2
3131

3232
- name: Setup Python
33-
uses: actions/setup-python@v4.4.0
33+
uses: actions/setup-python@v4.5.0
3434
with:
3535
python-version: "3.7"
3636
cache: "pip" # cache dependencies
@@ -47,17 +47,8 @@ jobs:
4747
# Uses prospector.yml config file
4848
prospector --output-format xunit:prospector_report.xml
4949
50-
# Keep this commented out for now until prospector output format is fixed
51-
# - name: Convert test results to Github Annotations
52-
# uses: check-run-reporter/[email protected]
53-
# Change to failure() only if you want to only report on failures
54-
# if: success()||failure()
55-
#with:
56-
# token: ${{ secrets.CHECK_RUN_REPORTER_TOKEN }}
57-
#report: './prospector_report.xml'
58-
#label: "Prospector Analysis Report"
59-
60-
# NOTE: Because it expects Junit format, the line numberings on the annotation header defaults to 1
50+
# NOTE: Because it expects a Junit format,
51+
# the line numberings on the annotation header defaults to 1
6152
# However the error message shows the correct line numbering.
6253
- name: Convert test results to Github Annotations
6354
uses: mikepenz/action-junit-report@v3

.github/workflows/typo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout Actions Repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v3.5.2
1616

1717
- name: Check spelling of TrueLearn
1818
uses: crate-ci/typos@master

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
MPLBACKEND: "Agg"
4949
steps:
5050
- name: Checkout Repo
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v3.5.2
5252

5353
- name: Setup Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v4.4.0
54+
uses: actions/setup-python@v4.5.0
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
cache: "pip" # cache dependencies

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
:target: https://github.com/psf/black
3939
:alt: Black
4040

41-
.. |TrueLearn| image:: docs/images/TrueLearn_logo.png
41+
.. |TrueLearn| image:: https://raw.githubusercontent.com/truelearnai/truelearn/main/docs/images/TrueLearn_logo.png
4242
:target: https://truelearnai.github.io/
4343
:alt: TrueLearn
4444

docs/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Change Log
33
----------
44
This file documents all notable changes to the project.
55

6-
- TrueLearn 1.0.0 (31-03-2022)
7-
- Initial release
6+
- TrueLearn 1.0.0 (13-04-2023)
7+
- Initial release!

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ authors = [
3131
]
3232
classifiers = [
3333
"License :: OSI Approved :: MIT License",
34+
"Intended Audience :: Science/Research",
35+
"Intended Audience :: Developers",
36+
"Intended Audience :: Education",
3437
"Programming Language :: Python :: 3.7",
3538
"Programming Language :: Python :: 3.8",
3639
"Programming Language :: Python :: 3.9",
3740
"Programming Language :: Python :: 3.10",
3841
"Programming Language :: Python :: 3.11",
42+
"Development Status :: 5 - Production/Stable",
43+
"Operating System :: Microsoft :: Windows",
44+
"Operating System :: MacOS",
45+
"Operating System :: Unix",
3946
"Topic :: Scientific/Engineering :: Artificial Intelligence",
4047
"Topic :: Software Development :: Libraries",
4148
"Topic :: Education",
@@ -50,14 +57,18 @@ dependencies = [
5057
'matplotlib>=3.5.3',
5158
'circlify>=0.15.0',
5259
"wordcloud>=1.8.2.2; python_version < '3.11'",
53-
"kaleido>=0.2.1",
60+
61+
# This is a temporary fix for kaleido hanging on image generation on Windows
62+
# See: https://github.com/plotly/Kaleido/issues/110
63+
# and: https://github.com/plotly/Kaleido/issues/134
64+
"kaleido==0.1.0.post1; sys_platform == 'win32'",
65+
"kaleido>=0.2.1; sys_platform != 'win32'",
5466
]
5567
[project.urls]
5668
Homepage = "https://truelearnai.github.io/"
5769
Documentation = "https://truelearn.readthedocs.io/en/stable/"
5870
Issues = "https://github.com/TrueLearnAI/truelearn/issues"
5971
Source = "https://github.com/TrueLearnAI/truelearn"
60-
ChangeLog = "https://github.com/TrueLearnAI/truelearn/blob/main/docs/changelog.rst"
6172

6273
[tool.setuptools.dynamic]
6374
version = {attr = "truelearn.__version__"}

0 commit comments

Comments
 (0)