Skip to content

🎯 Luther's Golden Algorithm - Ultimate Hybrid Cryptosystem #4

🎯 Luther's Golden Algorithm - Ultimate Hybrid Cryptosystem

🎯 Luther's Golden Algorithm - Ultimate Hybrid Cryptosystem #4

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests
run: |
python -m pytest test_luthers_algorithm.py -v --cov=luther_algorithm --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install linting dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black mypy
- name: Run flake8
run: flake8 luther_algorithm/luther_algorithm.py test_luthers_algorithm.py --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run black
run: black --check luther_algorithm/luther_algorithm.py test_luthers_algorithm.py
- name: Run mypy
run: mypy luther_algorithm/luther_algorithm.py --ignore-missing-imports
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Store build artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/