-
-
Notifications
You must be signed in to change notification settings - Fork 0
CI: publish to test.pypi.org, normal commit building CI, release CI part 2 #12
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
609e1e6
Disable linter
Zeroto521 23de7e9
Use versioneer, when the project is tagged, project version also updates
Zeroto521 1c5a93d
CI: publish to test.pypi.org
Zeroto521 70fcf6e
Remove travis test
Zeroto521 3904a3f
Also supports py3.9 & py3.10
Zeroto521 a89d02a
Set name
Zeroto521 a8f4178
Merge branch 'master' into pr/12
Zeroto521 d6b4aab
use list item, more readable
Zeroto521 42fae78
remove setup-miniconda
Zeroto521 1aeeacf
only one dependency: `json`
Zeroto521 1675efe
show package version
Zeroto521 18ba749
rename `*.yml` -> `*.yaml`
Zeroto521 0b8071b
use twine to check dist
Zeroto521 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,68 @@ | ||
| name: sdist | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| tags: | ||
| - "v*" | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| sdist: | ||
| name: ${{ matrix.python-version }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: | ||
| - "3.6" | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| - "3.10" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 # Fetch all history for all tags and branches | ||
|
|
||
| - uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: python -m pip install --upgrade pip setuptools wheel twine | ||
|
|
||
| - name: Build sdist | ||
| run: | | ||
| python setup.py sdist bdist_wheel | ||
| twine check --strict dist/* | ||
| ls -l dist | ||
|
|
||
| - name: Install from sdist | ||
| run: | | ||
| pip list | ||
| python -m pip install dist/*.gz | ||
|
|
||
| - name: Import flowlauncher | ||
| run: | | ||
| python -V | ||
| python -c "from flowlauncher import __version__; print(__version__);" | ||
| python -c "import pprint; from flowlauncher._version import get_versions; pprint.pprint(get_versions());" | ||
taooceros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| conda info | ||
| conda list | ||
|
|
||
| - name: Publish to TestPyPI | ||
| if: ${{ github.event_name == 'push' }} | ||
| uses: pypa/[email protected] | ||
| with: | ||
| user: __token__ | ||
| password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
| repository_url: https://test.pypi.org/legacy/ | ||
taooceros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| verbose: true | ||
| skip_existing: true | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.