-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add package publishing workflow (#99)
Also adds github ci workflow and removes circleci config as part of #100
- Loading branch information
Showing
23 changed files
with
585 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Python CI | ||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
push: | ||
branches: [master] | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
commitlint: | ||
uses: openedx/.github/.github/workflows/commitlint.yml@master | ||
|
||
run_tests: | ||
name: tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ['3.8'] | ||
toxenv: [py38-django32, quality] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install pip | ||
run: pip install -r requirements/pip.txt | ||
|
||
- name: Install Dependencies | ||
run: pip install -r requirements/ci.txt | ||
|
||
- name: Run Tests | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
run: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: pypi-publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
publish-package: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install pip | ||
run: pip install pip | ||
|
||
- name: Install Dependencies | ||
run: pip install setuptools wheel | ||
|
||
- name: Build package | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Publish to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PUBLISH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
markdown | ||
-e git://github.com/edx/xblock-utils.git@2.1.0#egg=xblock-utils | ||
-e git+https://github.com/openedx/xblock-utils.git@2.2.0#egg=xblock-utils | ||
ddt | ||
mock | ||
django-nose==1.4.6 | ||
bleach==3.1.5 | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Core requirements for using this application | ||
-c constraints.txt | ||
|
||
markdown | ||
-e git+https://github.com/openedx/xblock-utils.git@2.2.0#egg=xblock-utils | ||
ddt | ||
mock | ||
bleach==5.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
-e git+https://github.com/openedx/xblock-utils.git@2.2.0#egg=xblock-utils | ||
# via -r requirements/base.in | ||
appdirs==1.4.4 | ||
# via fs | ||
bleach==5.0.0 | ||
# via -r requirements/base.in | ||
ddt==1.6.0 | ||
# via -r requirements/base.in | ||
fs==2.4.16 | ||
# via xblock | ||
importlib-metadata==6.0.0 | ||
# via markdown | ||
lxml==4.9.2 | ||
# via xblock | ||
mako==1.2.4 | ||
# via xblock-utils | ||
markdown==3.4.1 | ||
# via -r requirements/base.in | ||
markupsafe==2.1.2 | ||
# via | ||
# mako | ||
# xblock | ||
mock==5.0.1 | ||
# via -r requirements/base.in | ||
python-dateutil==2.8.2 | ||
# via xblock | ||
pytz==2022.7.1 | ||
# via xblock | ||
pyyaml==6.0 | ||
# via xblock | ||
simplejson==3.18.1 | ||
# via xblock-utils | ||
six==1.16.0 | ||
# via | ||
# bleach | ||
# fs | ||
# python-dateutil | ||
web-fragments==2.0.0 | ||
# via | ||
# xblock | ||
# xblock-utils | ||
webencodings==0.5.1 | ||
# via bleach | ||
webob==1.8.7 | ||
# via xblock | ||
xblock==1.6.1 | ||
# via xblock-utils | ||
zipp==3.11.0 | ||
# via importlib-metadata | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Requirements for running tests in CI | ||
|
||
-c constraints.txt | ||
|
||
codecov # Code coverage reporting | ||
tox # Virtualenv management for tests | ||
tox-battery # Makes tox aware of requirements file changes | ||
pycodestyle==2.4.0 | ||
pylint |
Oops, something went wrong.