Skip to content

Commit

Permalink
Merge pull request #3 from Yannick-Dayer/fix/pypi-package
Browse files Browse the repository at this point in the history
Fix the python package build and add a CI step
  • Loading branch information
PuckCh authored Sep 11, 2024
2 parents d193565 + 47fc774 commit b17ce0c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: Copyright © Idiap Research Institute <[email protected]>
# SPDX-FileContributor: Yannick Dayer <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-only

name: tests

on:
push:
branches: [ "main" ]
pull_request:

permissions:
contents: read

jobs:
test-packaging:
name: Package the project into a distributable file
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build dependencies
run: |
pip install --upgrade pip
pip install build
- name: Package the project to the dist dir
run: python -m build
- name: Try installing from the new dists
run: pip install dist/*.whl
- name: Produce a GitHub actions artifact (the distributable package)
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
if-no-files-found: error
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ build-backend = "flit_core.buildapi"

[project]
name = "raw-speech-classification"
version = "1.0.0"
license = {file = "COPYING"}
version = "1.0.1"
license = {file = "LICENSES/GPL-3.0-only.txt"}
authors = [
{ name = "S. Pavankumar Dubagunta" },
{ name = "Dr. Mathew Magimai-Doss" },
Expand Down

0 comments on commit b17ce0c

Please sign in to comment.