Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into feat/dll
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaga committed May 12, 2024
2 parents 4c0fd4b + 7f9739e commit 6a99756
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 123 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: CI/CD


on:
push


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 & Poetry
uses: mishaga/action-poetry@1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: poetry install --no-root

- name: Analysing the code with flake8
run: poetry 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 & Poetry
uses: mishaga/action-poetry@1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: poetry install --no-root

- name: Testing code with pytest
run: poetry run pytest -v



build-doc:
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- lint
- test
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python & Poetry
uses: mishaga/action-poetry@1
with:
python-version: '3.12'

- name: Install dependencies
run: poetry install --no-root

- name: Generate documentation
run: |
mkdir docs
poetry run 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:
if: ${{ github.ref == 'refs/heads/main' }}
needs: build-doc
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Documentation deployment
id: deployment
uses: actions/deploy-pages@v4
123 changes: 0 additions & 123 deletions .github/workflows/jobs.yml

This file was deleted.

0 comments on commit 6a99756

Please sign in to comment.