Skip to content

Commit

Permalink
refactor: migrate build with python build
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Jul 25, 2023
1 parent d3e6049 commit fbe55c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
- name: Mypy
run: |
pip install mypy
mypy bitsrun/
mypy src/
19 changes: 11 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Setup pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.11"
cache: true
- name: Install build dependencies
run: pdm install --prod
cache: 'pip' # caching pip dependencies

- name: Set up build tools
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install setuptools build
- name: Build package
run: pdm build
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@82695c57c99db1f956e393b9d68847d85e569381
with:
Expand Down

0 comments on commit fbe55c9

Please sign in to comment.