Skip to content

Commit

Permalink
fix: CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaga committed May 12, 2024
1 parent 9d69361 commit a97becd
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python with Poetry
- name: Set up Python & Poetry
uses: mishaga/action-poetry@1
with:
python-version: ${{ matrix.python-version }}
afterwards: "poetry install --no-root"

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

- name: Analysing the code with flake8
run: flake8 --count basic_data_structure/
run: poetry run flake8 --count basic_data_structure/


test:
Expand All @@ -35,14 +37,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python with Poetry
- name: Set up Python & Poetry
uses: mishaga/action-poetry@1
with:
python-version: ${{ matrix.python-version }}
afterwards: "poetry install --no-root"

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

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



build-doc:
Expand All @@ -57,16 +62,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

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

- name: Generate documentation
run: |
mkdir docs
pdoc -o docs/ -d google --no-search --no-show-source basic_data_structure
poetry run pdoc -o docs/ -d google --no-search --no-show-source basic_data_structure
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit a97becd

Please sign in to comment.