Skip to content

Commit

Permalink
Upgrade python actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmick committed Jul 16, 2024
1 parent 045bacb commit f598c17
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: CI pipeline

Expand All @@ -13,11 +13,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.11
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -32,12 +32,14 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dev dependencies
Expand All @@ -55,11 +57,11 @@ jobs:
- lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -70,6 +72,6 @@ jobs:
TWINE_USERNAME: alexmick
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
sed -i "s|version=\"DEV\",|version=\"${GITHUB_REF/refs\/tags\//}\",|g" setup.py
sed -i "s|version=\"0.0.0\",|version=\"${GITHUB_REF/refs\/tags\//}\",|g" setup.py
python setup.py sdist bdist_wheel
twine upload dist/*
4 changes: 2 additions & 2 deletions dev.requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pytest-cov>=2.8.1,<3.0.0
# Linting
pylint>=2.4.3,<3.0.0
pylint-quotes>=0.2.1,<0.3.0
mypy>=0.761,<1.0.0
black>=19.10b0,<=20.0
mypy>=1.10.1,<2.0.0
black>=24.4.2,<=25.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="emoji_data_python",
version="DEV",
version="0.0.0",
url="https://github.com/alexmick/emoji-data-python/",

author="Alexander Micklewright",
Expand Down

0 comments on commit f598c17

Please sign in to comment.