Skip to content

Commit

Permalink
Updated gitignore to really include everything in .github/. Also upda…
Browse files Browse the repository at this point in the history
…ted benchmark plot script.
  • Loading branch information
sm00thix committed Jun 10, 2024
1 parent ad72ee4 commit a7105f6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build
description: Build the package

runs:
using: "composite"
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install flake8 pytest
python3 -m pip install poetry
python3 -m pip install twine
shell: bash

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
shell: bash

- name: Install CVMatrix dependencies
run: poetry install
shell: bash

- name: Build a binary wheel and a source tarball
run: poetry build
shell: bash

- name: Check the distribution with twine
run: twine check dist/*
shell: bash

- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.vscode/

# Byte-compiled / optimized / DLL files
Expand Down Expand Up @@ -52,6 +53,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
junit/

# Translations
*.mo
Expand Down Expand Up @@ -161,4 +163,7 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

!.github/*
!.github/**

docs/html/
docs/build/
5 changes: 4 additions & 1 deletion benchmarks/plot_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

from cvmatrix import __version__ as cvmatrix_version

# Remember to write cvmatrix version

if __name__ == '__main__':
# Remember to write cvmatrix version
pass

0 comments on commit a7105f6

Please sign in to comment.