Skip to content

Commit c648a10

Browse files
committed
Add build and test step to github workflow
1 parent e8d8012 commit c648a10

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19+
build:
20+
name: Build Package
21+
runs-on: ubuntu-20.04
22+
timeout-minutes: 5
23+
steps:
24+
- name: Set Up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.12'
28+
- name: Check out code
29+
uses: actions/checkout@v4
30+
- name: Install build dependencies
31+
run: pip install build twine
32+
- name: Build package
33+
run: python -m build .
34+
- name: Twine Check
35+
run: twine check dist/*
1936
test:
2037
name: Run pytest
2138
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)