Skip to content

Commit 6db31bb

Browse files
Merge pull request #142 from EasyScience/develop
Release 0.1.2
2 parents 10b833d + a4d9b0f commit 6db31bb

File tree

91 files changed

+5622
-1477392
lines changed

Some content is hidden

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

91 files changed

+5622
-1477392
lines changed

.github/workflows/delete-old-runs.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This workflow will delete old workflow runs based on the input parameters.
2+
# https://github.com/Mattraks/delete-workflow-runs
3+
4+
name: Delete old workflow runs
5+
6+
on:
7+
# Run monthly, at 00:00 on the 1st day of month.
8+
schedule:
9+
- cron: '0 0 1 * *'
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
inputs:
15+
days:
16+
description: 'Number of days.'
17+
required: true
18+
default: 30
19+
minimum_runs:
20+
description: 'The minimum runs to keep for each workflow.'
21+
required: true
22+
default: 6
23+
delete_workflow_pattern:
24+
description: 'The name or filename of the workflow. if not set then it will target all workflows.'
25+
required: false
26+
delete_workflow_by_state_pattern:
27+
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
28+
required: true
29+
default: "All"
30+
type: choice
31+
options:
32+
- "All"
33+
- active
34+
- deleted
35+
- disabled_inactivity
36+
- disabled_manually
37+
delete_run_by_conclusion_pattern:
38+
description: 'Remove workflow by conclusion: action_required, cancelled, failure, skipped, success'
39+
required: true
40+
default: "All"
41+
type: choice
42+
options:
43+
- "All"
44+
- action_required
45+
- cancelled
46+
- failure
47+
- skipped
48+
- success
49+
dry_run:
50+
description: 'Only log actions, do not perform any delete operations.'
51+
required: false
52+
53+
jobs:
54+
del-runs:
55+
56+
runs-on: ubuntu-latest
57+
58+
permissions:
59+
actions: write
60+
61+
steps:
62+
- name: Delete workflow runs
63+
uses: Mattraks/delete-workflow-runs@v2
64+
with:
65+
token: ${{ github.token }}
66+
repository: ${{ github.repository }}
67+
retain_days: ${{ github.event.inputs.days }}
68+
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
69+
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
70+
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
71+
delete_run_by_conclusion_pattern: ${{ github.event.inputs.delete_run_by_conclusion_pattern }}
72+
dry_run: ${{ github.event.inputs.dry_run }}

.github/workflows/ossar-analysis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Integrates a collection of open source static analysis tools with GitHub code scanning.
2+
# https://github.com/github/ossar-action
3+
4+
name: Run security static analysis
5+
6+
on:
7+
# Runs on pull requests
8+
pull_request:
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
ossar-analysis:
15+
# OSSAR runs on windows-latest.
16+
# ubuntu-latest and macos-latest support coming soon
17+
runs-on: windows-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
# We must fetch at least the immediate parents so that if this is
24+
# a pull request then we can checkout the head.
25+
fetch-depth: 2
26+
27+
# If this run was triggered by a pull request event, then checkout
28+
# the head of the pull request instead of the merge commit.
29+
- run: git checkout HEAD^2
30+
if: ${{ github.event_name == 'pull_request' }}
31+
32+
- name: Run open source static analysis tools
33+
uses: github/ossar-action@main
34+
id: ossar
35+
36+
- name: Upload results to Security tab
37+
uses: github/codeql-action/upload-sarif@v3
38+
with:
39+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

.github/workflows/pypi-publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Builds a Python package and publish it to PyPI when a new tag is created.
2+
3+
name: Upload release to PyPI
4+
5+
on:
6+
# Runs on creating a new tag starting with 'v', e.g. 'v1.0.3'
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
pypi-publish:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Check-out repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.12'
27+
28+
- name: Upgrade package installer for Python
29+
run: pip install --upgrade pip
30+
31+
- name: Install Python dependencies
32+
run: pip install '.[dev]'
33+
34+
- name: Create Python package
35+
run: python -m build
36+
37+
- name: Publish distribution 📦 to PyPI
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
with:
40+
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/pypi_publish.yml

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

.github/workflows/python-ci.yml

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

.github/workflows/release-drafter.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Drafts your next Release notes as pull requests are merged into default branch
2+
3+
name: Update release draft
4+
5+
on:
6+
# Runs on pushes targeting the default branch
7+
push:
8+
branches: [master]
9+
10+
jobs:
11+
update-release-draft:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: release-drafter/release-drafter@v6
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)