Skip to content

Commit

Permalink
chore(github): update build removing python 2.7 as it's unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
softvar committed Jun 26, 2023
1 parent 1e77d5a commit 7e669b8
Showing 1 changed file with 5 additions and 42 deletions.
47 changes: 5 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,6 @@ on:
branches: [ master ]

jobs:
python27:
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
name: Test on python 2.7
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7]
steps:
- uses: actions/checkout@v2
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install packages
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
- name: Run tests
run: coverage run --source=vwo setup.py test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true

- name: Notification
if: always()
id: slack
uses: wingify/slack-github-action@v1.15.1-wingify
with:
channel-id: 'fs-review-team'
slack-message: "<!here> Test on *Python-${{ matrix.python-version }}* and *${{ matrix.os }}* got *${{job.status}}* ${{job.status == 'success' && ':heavy_check_mark:' || ':x:'}} \nCommit: `${{github.event.head_commit.message}}`. \nCheck the latest build: https://github.com/wingify/vwo-python-sdk/actions"
color: "${{job.status == 'success' && '#00FF00' || '#FF0000'}}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

build:
if: "!contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
name: Test on python ${{ matrix.python-version }} and ${{ matrix.os }}
Expand All @@ -55,7 +16,7 @@ jobs:
matrix:
os:
- ubuntu-20.04
python-version: [ 3.5.4, 3.5.10, 3.6.7, 3.6.10, 3.6.14, 3.7.5, 3.7.11, 3.8.0, 3.8.5, 3.9.0, 3.9.6]
python-version: [ 3.5.4, 3.5.10, 3.6.7, 3.6.10, 3.6.14, 3.7.5, 3.7.11, 3.8.0, 3.8.5, 3.9.0, 3.9.6]

steps:
- uses: actions/checkout@v3
Expand All @@ -72,10 +33,12 @@ jobs:
if [ -f requirements-ci.txt ]; then pip install -r requirements-ci.txt; fi
- name: Run tests
run: coverage run --source=vwo setup.py test
run: coverage run --source=vwo setup.py test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true

Expand Down

0 comments on commit 7e669b8

Please sign in to comment.