Skip to content

Commit 109fd9e

Browse files
author
Giuseppe De Marco
authored
Merge pull request #331 from IdentityPython/ci
chore: some CI improvements
2 parents 6f3a775 + 3ac0ad4 commit 109fd9e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: djangosaml2
55

66
on:
77
push:
8-
branches: [ master, dev ]
8+
branches: '*'
99
pull_request:
10-
branches: [ master, dev ]
10+
branches: '*'
1111

1212
jobs:
1313
build:

build_pypi.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/bash
2-
rm -R build/ dist/ *egg-info ; python3 setup.py build sdist
2+
3+
PROJ_NAME=$(ls | grep *.egg-info | sed -e 's/.egg-info//g') ; rm -R build/ dist/* *.egg-info ; pip uninstall $PROJ_NAME ; python setup.py build sdist
4+
twine upload dist/*

tests/run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
# Load models
2727
application = get_wsgi_application()
2828

29-
management.call_command("test", "djangosaml2.tests", "testprofiles")
29+
management.call_command("test", "djangosaml2.tests", "testprofiles", "-v", "2")

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44

55
[testenv]
66
commands =
7+
pip list
78
python tests/run_tests.py
89

910
deps =

0 commit comments

Comments
 (0)