Skip to content

Commit

Permalink
Merge 9276ef7 into 1375a0c
Browse files Browse the repository at this point in the history
  • Loading branch information
daminijain23 committed Aug 25, 2021
2 parents 1375a0c + 9276ef7 commit 46278e4
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release on PyPI

on:
push:
tags:
- v*

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
107 changes: 107 additions & 0 deletions .github/workflows/tox-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Tox tests

on: [push, pull_request]

jobs:
py27:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e py27
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e static
pidiff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e pidiff
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e cov

# Codcov Action required installing pytest-cov as it needs coverage.
# The coverage library installed within tox is in virt-env and not
# accessible to Codecov.
- name: Install pytest cov
run: pip install pytest-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.15
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: |
tox -e docs
scripts/push-docs
revdep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: |
sudo apt-get install -y rpm
sudo apt-get install -y libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e revdep-pubtools-pulp
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest
requests-mock
mock
mock

0 comments on commit 46278e4

Please sign in to comment.