Skip to content

Commit 5095f2c

Browse files
authored
Update README for shields badges (#91)
* ⬆️ Pump executing to 1.2 * 💡 Add overrload for nameof and argname, but comment out, until we drop support for python3.7 or older * 🚨 Fix linting * 🚨 Fix linting * 🚨 Don't use future annotations for python3.6 * 📝 Update README for shields badges * 👷 Update CI using lastest actions * 👷 Roll ubuntu to 20.04 to support python3.6
1 parent 17ef905 commit 5095f2c

File tree

7 files changed

+132
-89
lines changed

7 files changed

+132
-89
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ on:
1010
jobs:
1111

1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04 # lastest doesn't support python3.6
1414
strategy:
1515
matrix:
1616
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11-dev]
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- name: Setup Python # Set Python version
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
@@ -36,7 +36,7 @@ jobs:
3636
- name: Test with pytest
3737
run: pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
3838
- name: Upload pytest test results
39-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v3
4040
with:
4141
name: pytest-results-${{ matrix.python-version }}
4242
path: junit/test-results-${{ matrix.python-version }}.xml
@@ -56,9 +56,9 @@ jobs:
5656
matrix:
5757
python-version: [3.9]
5858
steps:
59-
- uses: actions/checkout@v2
59+
- uses: actions/checkout@v3
6060
- name: Setup Python # Set Python version
61-
uses: actions/setup-python@v2
61+
uses: actions/setup-python@v4
6262
- name: Install dependencies
6363
run: |
6464
python -m pip install --upgrade pip

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
matrix:
1010
python-version: [3.9]
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Setup Python # Set Python version
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install dependencies
@@ -40,9 +40,9 @@ jobs:
4040
if: github.ref == 'refs/heads/master'
4141
strategy:
4242
matrix:
43-
python-version: [3.8]
43+
python-version: [3.9]
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646
with:
4747
ref: gh-pages
4848
- name: Fix index.html

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Pypi][3]][4] [![Github][5]][6] [![PythonVers][8]][4] ![Building][10]
44
[![Docs and API][9]][15] [![Codacy][12]][13] [![Codacy coverage][14]][13]
5-
[![Chat on gitter][17]][18]
5+
![Downloads][17]
66

77
Dark magics about variable names in python
88

@@ -390,15 +390,14 @@ For example:
390390
[6]: https://github.com/pwwang/python-varname
391391
[7]: logo.png
392392
[8]: https://img.shields.io/pypi/pyversions/varname?style=flat-square
393-
[9]: https://img.shields.io/github/workflow/status/pwwang/python-varname/Build%20Docs?label=docs&style=flat-square
394-
[10]: https://img.shields.io/github/workflow/status/pwwang/python-varname/Build%20and%20Deploy?style=flat-square
393+
[9]: https://img.shields.io/github/actions/workflow/status/pwwang/python-varname/docs.yml?branch=master
394+
[10]: https://img.shields.io/github/actions/workflow/status/pwwang/python-varname/build.yml?branch=master
395395
[11]: https://mybinder.org/v2/gh/pwwang/python-varname/dev?filepath=playground%2Fplayground.ipynb
396396
[12]: https://img.shields.io/codacy/grade/6fdb19c845f74c5c92056e88d44154f7?style=flat-square
397397
[13]: https://app.codacy.com/gh/pwwang/python-varname/dashboard
398398
[14]: https://img.shields.io/codacy/coverage/6fdb19c845f74c5c92056e88d44154f7?style=flat-square
399399
[15]: https://pwwang.github.io/python-varname/api/varname
400400
[16]: https://pwwang.github.io/python-varname/CHANGELOG/
401-
[17]: https://img.shields.io/gitter/room/pwwang/python-varname?style=flat-square
402-
[18]: https://gitter.im/python-varname/community
401+
[17]: https://img.shields.io/pypi/dm/varname?style=flat-square
403402
[19]: https://github.com/alexmojaki/executing#is-it-reliable
404403
[20]: https://stackoverflow.com/a/59364138/5088165

README.raw.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Pypi][3]][4] [![Github][5]][6] [![PythonVers][8]][4] ![Building][10]
44
[![Docs and API][9]][15] [![Codacy][12]][13] [![Codacy coverage][14]][13]
5-
[![Chat on gitter][17]][18]
5+
![Downloads][17]
66

77
Dark magics about variable names in python
88

@@ -385,15 +385,14 @@ For example:
385385
[6]: https://github.com/pwwang/python-varname
386386
[7]: logo.png
387387
[8]: https://img.shields.io/pypi/pyversions/varname?style=flat-square
388-
[9]: https://img.shields.io/github/workflow/status/pwwang/python-varname/Build%20Docs?label=docs&style=flat-square
389-
[10]: https://img.shields.io/github/workflow/status/pwwang/python-varname/Build%20and%20Deploy?style=flat-square
388+
[9]: https://img.shields.io/github/actions/workflow/status/pwwang/python-varname/docs.yml?branch=master
389+
[10]: https://img.shields.io/github/actions/workflow/status/pwwang/python-varname/build.yml?branch=master
390390
[11]: https://mybinder.org/v2/gh/pwwang/python-varname/dev?filepath=playground%2Fplayground.ipynb
391391
[12]: https://img.shields.io/codacy/grade/6fdb19c845f74c5c92056e88d44154f7?style=flat-square
392392
[13]: https://app.codacy.com/gh/pwwang/python-varname/dashboard
393393
[14]: https://img.shields.io/codacy/coverage/6fdb19c845f74c5c92056e88d44154f7?style=flat-square
394394
[15]: https://pwwang.github.io/python-varname/api/varname
395395
[16]: https://pwwang.github.io/python-varname/CHANGELOG/
396-
[17]: https://img.shields.io/gitter/room/pwwang/python-varname?style=flat-square
397-
[18]: https://gitter.im/python-varname/community
396+
[17]: https://img.shields.io/pypi/dm/varname?style=flat-square
398397
[19]: https://github.com/alexmojaki/executing#is-it-reliable
399398
[20]: https://stackoverflow.com/a/59364138/5088165

0 commit comments

Comments
 (0)