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

Add build test #182

Merged
merged 2 commits into from
Feb 6, 2023
Merged
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
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,43 @@ jobs:
with:
env_vars: PYTHON
fail_ci_if_error: true
- name: Build distribution
run: poetry build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: dists.${{ matrix.python-version }}
path: dist/
- name: Make docs
run: |
cd docs
poetry run make build

test-build:

runs-on: ubuntu-latest
needs: test
strategy:
matrix:
python-version: ["3.7", "3.8"]

steps:
- name: Enable pip-caching
run: touch requirements.txt
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' #doesn't seem to work
- name: Update pip
run: pip install --upgrade pip
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: dists.${{ matrix.python-version }}
path: dist
- name: Install mdbenchmark
run: pip install dist/*.tar.gz
- name: Check run
run: mdbenchmark

1 change: 1 addition & 0 deletions changelog/182.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add test to CI to verify distribution with pip. (PR 182)