-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumpy version, merge pull request #17 from tqdm/devel
- Loading branch information
Showing
25 changed files
with
341 additions
and
424 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Test | ||
on: | ||
push: | ||
pull_request: | ||
schedule: [{cron: '2 3 * * 6'}] # M H d m w (Sat 3:02) | ||
jobs: | ||
check: | ||
if: github.event_name != 'pull_request' || !contains('OWNER,MEMBER,COLLABORATOR', github.event.pull_request.author_association) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: {fetch-depth: 0} | ||
- uses: actions/setup-python@v5 | ||
with: {python-version: '3.x'} | ||
- name: dependencies | ||
run: pip install -U tox . | ||
- run: tox -e check | ||
test: | ||
if: github.event_name != 'pull_request' || !contains('OWNER,MEMBER,COLLABORATOR', github.event.pull_request.author_association) | ||
name: py${{ matrix.python }}-${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu] | ||
python: [3.7, 3.8, 3.9, '3.10', 3.11] | ||
include: | ||
- os: macos | ||
python: 3.11 | ||
- os: windows | ||
python: 3.11 | ||
runs-on: ${{ matrix.os }}-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: {fetch-depth: 0} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: install | ||
run: | | ||
pip install -U tox tox-gh-actions | ||
mkdir -p "$HOME/bin" | ||
curl -sfL https://coverage.codacy.com/get.sh > "$HOME/bin/codacy" | ||
chmod +x "$HOME/bin/codacy" | ||
echo "$HOME/bin" >> $GITHUB_PATH | ||
- name: tox | ||
run: tox -e py${PYVER/./} | ||
env: | ||
PYVER: ${{ matrix.python }} | ||
PLATFORM: ${{ matrix.os }} | ||
COVERALLS_FLAG_NAME: py${{ matrix.python }}-${{ matrix.os }} | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_SERVICE_NAME: github | ||
# coveralls needs explicit token | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
finish: | ||
name: pytest cov | ||
continue-on-error: ${{ github.event_name != 'push' }} | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: {python-version: '3.x'} | ||
- name: Coveralls Finished | ||
run: | | ||
pip install -U coveralls | ||
coveralls --finish || : | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Codacy Finished | ||
run: | | ||
curl -sfL https://coverage.codacy.com/get.sh > codacy | ||
bash codacy final || : | ||
env: | ||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
deploy: | ||
needs: [check, test] | ||
runs-on: ubuntu-latest | ||
environment: pypi | ||
permissions: {contents: write, id-token: write, packages: write} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN || github.token }} | ||
- uses: actions/setup-python@v5 | ||
with: {python-version: '3.x'} | ||
- id: dist | ||
uses: casperdcl/deploy-pypi@trusted-pub | ||
with: | ||
build: true | ||
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} | ||
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
name: Release | ||
run: | | ||
changelog=$(git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD) | ||
tag="${GITHUB_REF#refs/tags/}" | ||
gh release create --title "py-make $tag stable" --draft --notes "$changelog" "$tag" dist/${{ steps.dist.outputs.whl }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
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,26 +1,15 @@ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
__pycache__/ | ||
|
||
# Packages | ||
*.egg-info | ||
build/ | ||
dist/ | ||
/pymake/_dist_ver.py | ||
/*.egg*/ | ||
/build/ | ||
/dist/ | ||
|
||
# Unit test / coverage reports | ||
.tox/ | ||
.coverage | ||
__pycache__ | ||
nosetests.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject | ||
|
||
# PyCharm | ||
.idea | ||
/.tox/ | ||
/.coverage* | ||
/coverage.xml | ||
/.pytest_cache/ |
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 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.
Oops, something went wrong.