Skip to content

Commit

Permalink
version 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaga committed May 3, 2024
1 parent 7534080 commit 97faf40
Show file tree
Hide file tree
Showing 46 changed files with 1,703 additions and 1,092 deletions.
123 changes: 123 additions & 0 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: Jobs


on:
push:
branches:
- main


permissions:
contents: read


jobs:

lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
export POETRY_VIRTUALENVS_IN_PROJECT=false
export POETRY_VIRTUALENVS_CREATE=false
export POETRY_NO_INTERACTION=1
export POETRY_VERSION=1.8.2
curl -sSL https://install.python-poetry.org | python3 -
poetry install --no-root
- name: Analysing the code with flake8
run: flake8 --count basic_data_structure/


test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
export POETRY_VIRTUALENVS_IN_PROJECT=false
export POETRY_VIRTUALENVS_CREATE=false
export POETRY_NO_INTERACTION=1
export POETRY_VERSION=1.8.2
curl -sSL https://install.python-poetry.org | python3 -
poetry install --no-root
- name: Testing code with pytest
run: pytest -v


build-doc:
needs:
- lint
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
export POETRY_VIRTUALENVS_IN_PROJECT=false
export POETRY_VIRTUALENVS_CREATE=false
export POETRY_NO_INTERACTION=1
export POETRY_VERSION=1.8.2
curl -sSL https://install.python-poetry.org | python3 -
poetry install --no-root
- name: Generate documentation
run: |
mkdir docs
pdoc -o docs/ -d google --no-search --no-show-source basic_data_structure
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/


deploy-doc:
needs: build-doc
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
30 changes: 0 additions & 30 deletions .github/workflows/lint-n-test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ __pycache__

/.idea
/dist
/docs
Loading

0 comments on commit 97faf40

Please sign in to comment.