File tree 5 files changed +43
-39
lines changed 5 files changed +43
-39
lines changed Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
3
on :
4
- release :
5
- types : [ published ]
4
+ push :
5
+ branches : [ main ]
6
6
pull_request :
7
7
branches : [ "**" ]
8
8
63
63
- name : Test Docker Image
64
64
run : |
65
65
docker run --rm juftin/lunchable:latest
66
-
67
- version-checker :
68
- if : ${{ github.event_name == 'pull_request' }}
69
- runs-on : ubuntu-latest
70
- steps :
71
- - name : Set up Python
72
- uses : actions/setup-python@v2
73
- with :
74
- python-version : " 3.9"
75
- - name : Install Dependencies
76
- run : |
77
- pip install --upgrade pip
78
- pip install packaging
79
- - name : Checkout Main Branch
80
- uses : actions/checkout@v2
81
- with :
82
- fetch-depth : 0
83
- ref : main
84
- - name : Get Version from main
85
- run : |
86
- COMPARED_VERSION="$(python setup.py --version)"
87
- echo COMPARED_VERSION="${COMPARED_VERSION}" >> ${GITHUB_ENV}
88
- - name : Checkout Current Ref
89
- uses : actions/checkout@v2
90
- with :
91
- fetch-depth : 0
92
- ref : ${{ github.ref }}
93
- - name : Get Current Version
94
- run : |
95
- CURRENT_VERSION="$(python setup.py --version)"
96
- echo CURRENT_VERSION="${CURRENT_VERSION}" >> ${GITHUB_ENV}
97
- - name : Compare Versions
98
- run : |
99
- python "${{ github.workspace }}/.github/helpers/version_check.py"
Original file line number Diff line number Diff line change
1
+ name : Version Checker
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ main ]
6
+ jobs :
7
+ version-checker :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Set up Python
11
+ uses : actions/setup-python@v2
12
+ with :
13
+ python-version : " 3.9"
14
+ - name : Install Dependencies
15
+ run : |
16
+ pip install --upgrade pip
17
+ pip install packaging
18
+ - name : Checkout Main Branch
19
+ uses : actions/checkout@v2
20
+ with :
21
+ fetch-depth : 0
22
+ ref : main
23
+ - name : Get Version from main
24
+ run : |
25
+ COMPARED_VERSION="$(python setup.py --version)"
26
+ echo COMPARED_VERSION="${COMPARED_VERSION}" >> ${GITHUB_ENV}
27
+ - name : Checkout Current Ref
28
+ uses : actions/checkout@v2
29
+ with :
30
+ fetch-depth : 0
31
+ ref : ${{ github.ref }}
32
+ - name : Get Current Version
33
+ run : |
34
+ CURRENT_VERSION="$(python setup.py --version)"
35
+ echo CURRENT_VERSION="${CURRENT_VERSION}" >> ${GITHUB_ENV}
36
+ - name : Compare Versions
37
+ run : |
38
+ python "${{ github.workspace }}/.github/helpers/version_check.py"
Original file line number Diff line number Diff line change 10
10
[ ![ Lunchable Version] ( https://img.shields.io/pypi/v/lunchable?color=blue&label=lunchable )] ( https://github.com/juftin/lunchable )
11
11
[ ![ PyPI] ( https://img.shields.io/pypi/pyversions/lunchable )] ( https://pypi.python.org/pypi/lunchable/ )
12
12
[ ![ Docker Image Version] ( https://img.shields.io/docker/v/juftin/lunchable?color=blue&label=docker&logo=docker )] ( https://hub.docker.com/r/juftin/lunchable )
13
- [ ![ Testing Status] ( https://github.com/juftin/lunchable/actions/workflows/tests.yml/badge.svg?branch=main&event=release )] ( https://github.com/juftin/lunchable/actions/workflows/tests.yml?query=branch%3Amain )
13
+ [ ![ Testing Status] ( https://github.com/juftin/lunchable/actions/workflows/tests.yml/badge.svg?branch=main )] ( https://github.com/juftin/lunchable/actions/workflows/tests.yml?query=branch%3Amain )
14
14
[ ![ GitHub License] ( https://img.shields.io/github/license/juftin/lunchable?color=blue&label=License )] ( https://github.com/juftin/lunchable/blob/main/LICENSE )
15
15
[ ![ Documentation Status] ( https://readthedocs.org/projects/lunchable/badge/?version=latest )] ( https://lunchable.readthedocs.io/en/latest/?badge=latest )
16
16
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ and extensive test coverage.
24
24
.. image :: https://img.shields.io/docker/v/juftin/lunchable?color=blue&label=docker&logo=docker
25
25
:target: https://hub.docker.com/r/juftin/lunchable
26
26
:alt: Docker
27
- .. image :: https://github.com/juftin/lunchable/actions/workflows/tests.yml/badge.svg?branch=main&event=release
27
+ .. image :: https://github.com/juftin/lunchable/actions/workflows/tests.yml/badge.svg?branch=main
28
28
:target: https://github.com/juftin/lunchable/actions/workflows/tests.yml?query=branch%3Amain
29
29
:alt: Testing Status
30
30
.. image :: https://img.shields.io/github/license/juftin/lunchable?color=blue&label=License
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
__lunchable__ = "lunchable"
6
- __version__ = "0.1.3 "
6
+ __version__ = "0.1.4 "
You can’t perform that action at this time.
0 commit comments