Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fixes #80

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
python3 -m pip install setuptools wheel twine build
pip install -r requirements.txt
pip install pytest
- name: Test with pytest
Expand All @@ -24,8 +24,7 @@ jobs:
- name: Build and publish to TestPyPI
run: |
# Install the package from setup.py
python3 setup.py install
python3 setup.py sdist bdist_wheel
python3 -m build
python3 -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
env:
TWINE_USERNAME: __token__
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Test
name: Test
on: [push]
jobs:
lint:
Expand Down Expand Up @@ -34,3 +34,16 @@ jobs:
- name: Test with pytest
run: |
pytest tests -v

- name: Install build
run: |
pip install build
pip install twine
- name: Build and publish to TestPyPI
run: |
# Install the package from setup.py
python3 -m build
python3 -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_TOKEN }}
Loading