Skip to content

Commit

Permalink
Move build system to poetry
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Mazur <mateusz.mazur@e.email>
  • Loading branch information
Mazurel committed Oct 29, 2023
1 parent 32daa7f commit 155e317
Show file tree
Hide file tree
Showing 5 changed files with 1,855 additions and 32 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
run: poetry install
- name: Analysing the code with Black
run: |
black --check src/**.py
poetry run black --check src/**.py
- name: Run unit tests
run: |
python test.py
poetry run python test.py
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ This is a repo for our reasearch project 5@KAMS.

## Local installation

This project is using `poetry` build system.
You need to install poetry first on your system.
To do that, please see installation guide: https://python-poetry.org/docs/

```shell
python -m venv venv
pip install -e .
pip install -e ".[dev]"
python main.py
poetry install
poetry run python main.py
```

## Running tests
Expand All @@ -19,5 +21,5 @@ This project uses `pytest` for testing.
To run full test suite, run:

```shell
python test.py
poetry run python test.py
```
Loading

0 comments on commit 155e317

Please sign in to comment.