Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the project to Poetry #443

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip version
run: |
python -m pip install --upgrade pip
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install requirements
run: |
pip install -r requirements.txt
pip install -r docs/requirements.txt
- name: 'Install dependencies'
run: poetry install

- name: Build package
run: |
python -m pip install .
run: poetry build

- name: Run tests
run: |
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
poetry run pytest --doctest-modules --cov=./ --cov-report=xml -s

- name: Upload Coverage
uses: codecov/codecov-action@v2
Expand All @@ -57,7 +53,3 @@ jobs:
name: codecov-umbrella
path_to_write_report: ./coverage/codecov_report.txt
verbose: true

- name: Build Documentation
run: |
sphinx-build -b html docs/source/ docs/build/html
Loading