11# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2- # For more information see: https://help .github.com/actions/language- and-framework-guides/using-python-with-github-actions
2+ # For more information see: https://docs .github.com/en/ actions/automating-builds- and-tests/building-and-testing-python
33
44name : CI pipeline
55
@@ -13,31 +13,33 @@ jobs:
1313 lint :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Set up Python
18- uses : actions/setup-python@v1
18+ uses : actions/setup-python@v3
1919 with :
20- python-version : 3.6
20+ python-version : 3.12
2121 - name : Install dev dependencies
2222 run : |
2323 python -m pip install --upgrade pip
2424 pip install -r dev.requirements.txt
2525 - name : Lint with black
2626 run : black --check emoji_data_python
2727 - name : Lint with pylint
28- run : pylint --load-plugins pylint_quotes emoji_data_python
28+ run : pylint emoji_data_python
2929 - name : mypy type checking (allowed to fail for now)
3030 run : mypy emoji_data_python || true
3131
3232 test :
3333 runs-on : ubuntu-latest
3434 strategy :
35+ fail-fast : false
3536 matrix :
36- python-version : [3.6, 3.7, 3.8]
37+ python-version : ["3.9", "3.12"]
38+
3739 steps :
38- - uses : actions/checkout@v2
40+ - uses : actions/checkout@v4
3941 - name : Set up Python ${{ matrix.python-version }}
40- uses : actions/setup-python@v1
42+ uses : actions/setup-python@v3
4143 with :
4244 python-version : ${{ matrix.python-version }}
4345 - name : Install dev dependencies
@@ -55,11 +57,11 @@ jobs:
5557 - lint
5658 runs-on : ubuntu-latest
5759 steps :
58- - uses : actions/checkout@v2
60+ - uses : actions/checkout@v4
5961 - name : Set up Python
60- uses : actions/setup-python@v1
62+ uses : actions/setup-python@v3
6163 with :
62- python-version : 3.6
64+ python-version : 3.11
6365 - name : Install dependencies
6466 run : |
6567 python -m pip install --upgrade pip
7072 TWINE_USERNAME : alexmick
7173 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
7274 run : |
73- sed -i "s|version=\"DEV \",|version=\"${GITHUB_REF/refs\/tags\//}\",|g" setup.py
75+ sed -i "s|version=\"0.0.0 \",|version=\"${GITHUB_REF/refs\/tags\//}\",|g" setup.py
7476 python setup.py sdist bdist_wheel
7577 twine upload dist/*
0 commit comments