adnus 0.1.4__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of adnus might be problematic. Click here for more details.
- adnus-0.1.6/.gitattributes +2 -0
- adnus-0.1.6/.github/CODEOWNERS +1 -0
- adnus-0.1.6/.github/dependabot.yml +15 -0
- adnus-0.1.6/.github/workflows/ci-cd.yml +35 -0
- adnus-0.1.6/.github/workflows/codeql.yml +100 -0
- adnus-0.1.6/.github/workflows/conda-publish.yml +90 -0
- adnus-0.1.6/.github/workflows/jekyll-gh-pages.yml +35 -0
- adnus-0.1.6/.github/workflows/lint.yml +17 -0
- adnus-0.1.6/.github/workflows/python-package.yml +56 -0
- adnus-0.1.6/.github/workflows/python-publish.yml +35 -0
- adnus-0.1.6/.github/workflows/python_ci.yml +26 -0
- adnus-0.1.6/.github/workflows/static.yml +58 -0
- adnus-0.1.6/.github/workflows/workflow.yml +34 -0
- adnus-0.1.6/.github/workflows/zenodo.yml +25 -0
- adnus-0.1.6/.gitignore +181 -0
- adnus-0.1.6/.pre-commit-config.yaml +24 -0
- adnus-0.1.6/.readthedocs.yaml +27 -0
- adnus-0.1.6/.ruff.toml +9 -0
- adnus-0.1.6/.zenodo.json +13 -0
- adnus-0.1.6/CITATION.cff +37 -0
- adnus-0.1.6/CODE_OF_CONDUCT.md +127 -0
- adnus-0.1.6/CONTRIBUTING.md +81 -0
- adnus-0.1.6/MANIFEST.in +3 -0
- {adnus-0.1.4 → adnus-0.1.6}/PKG-INFO +22 -13
- adnus-0.1.6/SECURITY.md +21 -0
- adnus-0.1.6/conda_build_config.yaml +2 -0
- adnus-0.1.6/docs/conf.py +31 -0
- adnus-0.1.6/docs/index.rst +1 -0
- adnus-0.1.6/docs/requirements.txt +2 -0
- adnus-0.1.6/meta.yaml +42 -0
- adnus-0.1.6/package-lock.json +1 -0
- adnus-0.1.6/package.json +35 -0
- adnus-0.1.6/poetry.lock +308 -0
- adnus-0.1.6/pyproject.toml +38 -0
- adnus-0.1.6/recipe/meta.yaml +42 -0
- adnus-0.1.6/requirements.txt +1 -0
- adnus-0.1.6/setup.cfg +4 -0
- adnus-0.1.6/setup.py +69 -0
- {adnus-0.1.4 → adnus-0.1.6}/src/adnus/_version.py +2 -2
- adnus-0.1.6/src/adnus.egg-info/PKG-INFO +299 -0
- adnus-0.1.6/src/adnus.egg-info/SOURCES.txt +48 -0
- adnus-0.1.6/src/adnus.egg-info/dependency_links.txt +1 -0
- adnus-0.1.6/src/adnus.egg-info/requires.txt +9 -0
- adnus-0.1.6/src/adnus.egg-info/top_level.txt +1 -0
- adnus-0.1.6/tests/test_adnus.py +112 -0
- adnus-0.1.4/pyproject.toml +0 -19
- {adnus-0.1.4 → adnus-0.1.6}/LICENSE +0 -0
- {adnus-0.1.4 → adnus-0.1.6}/README.md +0 -0
- {adnus-0.1.4 → adnus-0.1.6}/src/adnus/__init__.py +0 -0
- {adnus-0.1.4 → adnus-0.1.6}/src/adnus/main.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @WhiteSymmetry # Default codeowners for all files
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
# Dependabot configuration for automatic dependency updates
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "pip" # Specify package ecosystem (e.g., pip, npm, maven)
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly" # Check for updates weekly
|
|
12
|
+
open-pull-requests-limit: 10 # Limit the number of open pull requests
|
|
13
|
+
ignore:
|
|
14
|
+
- dependency-name: "example-package" # Specify dependencies to ignore, if any
|
|
15
|
+
versions: ["==1.*"] # Ignore all patch versions of 1.x
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Publish to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Gerekli: OIDC token istemek için
|
|
14
|
+
contents: read # Kod deposunu okumak için
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.x'
|
|
24
|
+
|
|
25
|
+
- name: Install build dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install build
|
|
29
|
+
|
|
30
|
+
- name: Build the package
|
|
31
|
+
run: python -m build
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
35
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL Advanced"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ "main" ]
|
|
17
|
+
pull_request:
|
|
18
|
+
branches: [ "main" ]
|
|
19
|
+
schedule:
|
|
20
|
+
- cron: '19 11 * * 6'
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
analyze:
|
|
24
|
+
name: Analyze (${{ matrix.language }})
|
|
25
|
+
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
|
26
|
+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
|
27
|
+
# - https://gh.io/supported-runners-and-hardware-resources
|
|
28
|
+
# - https://gh.io/using-larger-runners (GitHub.com only)
|
|
29
|
+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
|
30
|
+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
31
|
+
permissions:
|
|
32
|
+
# required for all workflows
|
|
33
|
+
security-events: write
|
|
34
|
+
|
|
35
|
+
# required to fetch internal or private CodeQL packs
|
|
36
|
+
packages: read
|
|
37
|
+
|
|
38
|
+
# only required for workflows in private repositories
|
|
39
|
+
actions: read
|
|
40
|
+
contents: read
|
|
41
|
+
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
include:
|
|
46
|
+
- language: actions
|
|
47
|
+
build-mode: none
|
|
48
|
+
- language: python
|
|
49
|
+
build-mode: none
|
|
50
|
+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
|
|
51
|
+
# Use `c-cpp` to analyze code written in C, C++ or both
|
|
52
|
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
|
53
|
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
|
54
|
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
|
55
|
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
|
56
|
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
|
57
|
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
58
|
+
steps:
|
|
59
|
+
- name: Checkout repository
|
|
60
|
+
uses: actions/checkout@v4
|
|
61
|
+
|
|
62
|
+
# Add any setup steps before running the `github/codeql-action/init` action.
|
|
63
|
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
|
64
|
+
# or others). This is typically only required for manual builds.
|
|
65
|
+
# - name: Setup runtime (example)
|
|
66
|
+
# uses: actions/setup-example@v1
|
|
67
|
+
|
|
68
|
+
# Initializes the CodeQL tools for scanning.
|
|
69
|
+
- name: Initialize CodeQL
|
|
70
|
+
uses: github/codeql-action/init@v3
|
|
71
|
+
with:
|
|
72
|
+
languages: ${{ matrix.language }}
|
|
73
|
+
build-mode: ${{ matrix.build-mode }}
|
|
74
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
75
|
+
# By default, queries listed here will override any specified in a config file.
|
|
76
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
77
|
+
|
|
78
|
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
79
|
+
# queries: security-extended,security-and-quality
|
|
80
|
+
|
|
81
|
+
# If the analyze step fails for one of the languages you are analyzing with
|
|
82
|
+
# "We were unable to automatically build your code", modify the matrix above
|
|
83
|
+
# to set the build mode to "manual" for that language. Then modify this step
|
|
84
|
+
# to build your code.
|
|
85
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
86
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
87
|
+
- if: matrix.build-mode == 'manual'
|
|
88
|
+
shell: bash
|
|
89
|
+
run: |
|
|
90
|
+
echo 'If you are using a "manual" build mode for one or more of the' \
|
|
91
|
+
'languages you are analyzing, replace this with the commands to build' \
|
|
92
|
+
'your code, for example:'
|
|
93
|
+
echo ' make bootstrap'
|
|
94
|
+
echo ' make release'
|
|
95
|
+
exit 1
|
|
96
|
+
|
|
97
|
+
- name: Perform CodeQL Analysis
|
|
98
|
+
uses: github/codeql-action/analyze@v3
|
|
99
|
+
with:
|
|
100
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Conda-Build, Test, and Publish Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
release:
|
|
6
|
+
types: [published]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.11"]
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Setup Miniconda for Python ${{ matrix.python-version }}
|
|
20
|
+
uses: conda-incubator/setup-miniconda@v3
|
|
21
|
+
with:
|
|
22
|
+
auto-activate-base: false
|
|
23
|
+
python-version: "${{ matrix.python-version }}"
|
|
24
|
+
channels: conda-forge,defaults
|
|
25
|
+
channel-priority: strict
|
|
26
|
+
|
|
27
|
+
- name: Install Conda-Build and Conda-Verify
|
|
28
|
+
run: conda install -n base conda-build -y
|
|
29
|
+
|
|
30
|
+
- name: Build the package for Python ${{ matrix.python-version }}
|
|
31
|
+
run: |
|
|
32
|
+
export PKG_VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
|
|
33
|
+
echo "Building version: $PKG_VERSION for Python ${{ matrix.python-version }}"
|
|
34
|
+
|
|
35
|
+
conda build . --python ${{ matrix.python-version }} --output-folder ./dist
|
|
36
|
+
|
|
37
|
+
if [ -z "$(ls -A dist)" ]; then
|
|
38
|
+
echo "HATA: Hiçbir conda paketi oluşturulmadı."
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
echo "Oluşturulan paket:"
|
|
42
|
+
ls -l dist
|
|
43
|
+
|
|
44
|
+
- name: Create test environment and install dependencies
|
|
45
|
+
run: |
|
|
46
|
+
conda create -n test-env -y python=${{ matrix.python-version }} hypercomplex pytest pytest-cov
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
- name: Run development tests
|
|
50
|
+
run: |
|
|
51
|
+
conda run -n test-env --no-capture-output python -m pytest tests/ --cov=adnus
|
|
52
|
+
|
|
53
|
+
- name: Install and test the built package
|
|
54
|
+
run: |
|
|
55
|
+
PACKAGE_FILE=$(ls dist/*.conda | head -n 1)
|
|
56
|
+
conda install -n test-env -y "$PACKAGE_FILE"
|
|
57
|
+
conda run -n test-env --no-capture-output python -c "import adnus; print('Import successful for Python ${{ matrix.python-version }}!')"
|
|
58
|
+
|
|
59
|
+
- name: Debug - List files in the workspace
|
|
60
|
+
run: |
|
|
61
|
+
echo "--- Current Working Directory ---"
|
|
62
|
+
pwd
|
|
63
|
+
echo "--- Recursive file listing ---"
|
|
64
|
+
ls -R
|
|
65
|
+
echo "--- End of file listing ---"
|
|
66
|
+
|
|
67
|
+
- name: Upload to Anaconda Cloud
|
|
68
|
+
if: success()
|
|
69
|
+
env:
|
|
70
|
+
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
|
|
71
|
+
run: |
|
|
72
|
+
PACKAGE_FILES=$(find dist -name "*.conda")
|
|
73
|
+
|
|
74
|
+
if [ -z "$PACKAGE_FILES" ]; then
|
|
75
|
+
echo "HATA: Yüklenecek .conda dosyası bulunamadı!"
|
|
76
|
+
exit 1
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
echo "Yüklenecek paketler:"
|
|
80
|
+
echo "$PACKAGE_FILES"
|
|
81
|
+
|
|
82
|
+
conda install -n base -y anaconda-client
|
|
83
|
+
conda run -n base anaconda -t $ANACONDA_TOKEN upload \
|
|
84
|
+
$PACKAGE_FILES \
|
|
85
|
+
--label main \
|
|
86
|
+
--skip-existing
|
|
87
|
+
|
|
88
|
+
- name: Cleanup test environment
|
|
89
|
+
if: always()
|
|
90
|
+
run: conda env remove -n test-env || true
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Publish to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Gerekli: OIDC token istemek için
|
|
14
|
+
contents: read # Kod deposunu okumak için
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.x'
|
|
24
|
+
|
|
25
|
+
- name: Install build dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install build
|
|
29
|
+
|
|
30
|
+
- name: Build the package
|
|
31
|
+
run: python -m build
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
35
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Lint with Ruff
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
ruff:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- name: Set up Python
|
|
11
|
+
uses: actions/setup-python@v4
|
|
12
|
+
with:
|
|
13
|
+
python-version: '3.11'
|
|
14
|
+
- name: Install Ruff
|
|
15
|
+
run: pip install -U ruff
|
|
16
|
+
- name: Run Ruff
|
|
17
|
+
run: ruff check . --fix
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests, and lint with multiple Python versions
|
|
2
|
+
# For more information, see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
name: Python package
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: ["main"]
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: ["main"]
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
pull-requests: write
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
21
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- name: Check out the repository
|
|
25
|
+
uses: actions/checkout@v3
|
|
26
|
+
|
|
27
|
+
- name: Cache dependencies
|
|
28
|
+
uses: actions/cache@v3
|
|
29
|
+
with:
|
|
30
|
+
path: ~/.cache/pip
|
|
31
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
32
|
+
restore-keys: |
|
|
33
|
+
${{ runner.os }}-pip-
|
|
34
|
+
|
|
35
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
36
|
+
uses: actions/setup-python@v3
|
|
37
|
+
with:
|
|
38
|
+
python-version: ${{ matrix.python-version }}
|
|
39
|
+
|
|
40
|
+
- name: Install dependencies
|
|
41
|
+
run: |
|
|
42
|
+
python -m pip install --upgrade pip
|
|
43
|
+
python -m pip install flake8 pytest pytest-cov
|
|
44
|
+
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
45
|
+
|
|
46
|
+
- name: Lint with flake8
|
|
47
|
+
run: |
|
|
48
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
49
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
50
|
+
|
|
51
|
+
- name: Run tests with pytest and generate coverage report
|
|
52
|
+
run: pytest --cov=your_package_name --cov-report=xml
|
|
53
|
+
|
|
54
|
+
- name: Upload coverage to Codecov
|
|
55
|
+
uses: codecov/codecov-action@v3
|
|
56
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Publish to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Gerekli: OIDC token istemek için
|
|
14
|
+
contents: read # Kod deposunu okumak için
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.x'
|
|
24
|
+
|
|
25
|
+
- name: Install build dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install build
|
|
29
|
+
|
|
30
|
+
- name: Build the package
|
|
31
|
+
run: python -m build
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
35
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Run tests and upload coverage
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
name: Run tests and collect coverage
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 2
|
|
15
|
+
|
|
16
|
+
- name: Set up Node
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: npm install
|
|
21
|
+
|
|
22
|
+
- name: Upload results to Codecov
|
|
23
|
+
uses: codecov/codecov-action@v5
|
|
24
|
+
with:
|
|
25
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
26
|
+
slug: WhiteSymmetry/adnus
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Workflow for deploying static content to GitHub Pages
|
|
2
|
+
name: Deploy static content to Pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: ["main"]
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
# Set permissions for GitHub Pages deployment
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
pages: write
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
# Limit to one concurrent deployment
|
|
16
|
+
concurrency:
|
|
17
|
+
group: "pages"
|
|
18
|
+
cancel-in-progress: false
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
# Build and deploy job
|
|
22
|
+
deploy:
|
|
23
|
+
environment:
|
|
24
|
+
name: github-pages
|
|
25
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
steps:
|
|
28
|
+
- name: Check out the repository
|
|
29
|
+
uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- name: Set up Node.js
|
|
32
|
+
uses: actions/setup-node@v4
|
|
33
|
+
with:
|
|
34
|
+
node-version: '20'
|
|
35
|
+
|
|
36
|
+
- name: Cache node_modules
|
|
37
|
+
uses: actions/cache@v3
|
|
38
|
+
with:
|
|
39
|
+
path: node_modules
|
|
40
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
41
|
+
restore-keys: |
|
|
42
|
+
${{ runner.os }}-node-
|
|
43
|
+
|
|
44
|
+
- name: Build static content
|
|
45
|
+
run: npm run build
|
|
46
|
+
|
|
47
|
+
- name: Configure GitHub Pages
|
|
48
|
+
uses: actions/configure-pages@v4
|
|
49
|
+
|
|
50
|
+
- name: Upload static content artifact
|
|
51
|
+
uses: actions/upload-pages-artifact@v3
|
|
52
|
+
with:
|
|
53
|
+
path: './dist' # Uygunsa build çıktısı dizininizi buraya yazın (örneğin: public, build, dist)
|
|
54
|
+
|
|
55
|
+
- name: Deploy to GitHub Pages
|
|
56
|
+
id: deployment
|
|
57
|
+
uses: actions/deploy-pages@v4
|
|
58
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: PyPI-Publish Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Publish to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Gerekli: OIDC token istemek için
|
|
14
|
+
contents: read # Kod deposunu okumak için
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout code
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.x'
|
|
24
|
+
|
|
25
|
+
- name: Install build dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install build
|
|
29
|
+
|
|
30
|
+
- name: Build the package
|
|
31
|
+
run: python -m build
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Zenodo-Publish to Zenodo on Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish-to-zenodo:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout code
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Create ZIP Archive
|
|
17
|
+
run: |
|
|
18
|
+
zip -r grikod-source.zip ./*
|
|
19
|
+
|
|
20
|
+
- name: Upload to Zenodo
|
|
21
|
+
uses: yfukai/zenodo-publish-action@v1.3.0
|
|
22
|
+
with:
|
|
23
|
+
access_token: ${{ secrets.ZENODO_TOKEN }}
|
|
24
|
+
metadata_file: .zenodo.json
|
|
25
|
+
filename: grikod-source.zip
|