-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from inosion/python-support
fix: fix ci/cd pipeline for publihsing
- Loading branch information
Showing
12 changed files
with
1,476 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/rust-build-publish.yml → .github/workflows/rust-build-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish | ||
name: Rust CI | ||
on: | ||
push: | ||
tags: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# csv_file_to_md | ||
# csv_to_md | ||
# spreadsheet_to_csv | ||
# spreadsheet_to_csv | ||
|
||
from madato import csv_to_md | ||
|
||
def test_csv_to_md(artists_csv_str): | ||
headers = """| name |age|genre|albums_sold|hometown |active| label |""" | ||
md = csv_to_md(artists_csv_str) | ||
assert md.startswith(headers) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
from pathlib import Path | ||
from madato import spreadsheet_to_md | ||
|
||
|
||
def test_xlsx_to_md(): | ||
this_dir = Path(__file__).parent | ||
my_sample_spreadsheet = this_dir / Path("../../test/Financial Sample.xlsx") | ||
md = spreadsheet_to_md(str(my_sample_spreadsheet)) | ||
headers = "| Segment | Country | Product |Discount Band|Units Sold|Manufacturing Price|Sale Price|Gross Sales| Discounts | Sales | COGS | Profit |Date |Month Number|Month Name|Year|" | ||
assert md.startswith(headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters