Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating dependencies #25

Open
wants to merge 524 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
524 commits
Select commit Hold shift + click to select a range
0389cb5
Add permissions to example workflows, restrict permissions in CI
EnricoMi May 1, 2022
eacea16
Fix python interpreter detection (#262)
sorekz May 9, 2022
ca5954b
Bump junitparser from 2.4.3 to 2.5.0 (#261)
dependabot[bot] May 9, 2022
eaa3281
Bump actions/download-artifact from 2 to 3 (#260)
dependabot[bot] May 9, 2022
e13492e
Bump actions/upload-artifact from 2 to 3 (#259)
dependabot[bot] May 9, 2022
9cfddb8
Bump github/codeql-action from 1 to 2 (#258)
dependabot[bot] May 9, 2022
3579960
Releasing v1.34
EnricoMi May 9, 2022
b406f72
Use absolute paths to files from tests (#267)
lachaib May 10, 2022
fbf7580
Publish results as job summary (#266)
lachaib May 12, 2022
1f61495
Add support for environment files to GithubAction (#270)
EnricoMi May 12, 2022
a841656
Add details url to job summary, add to README.md (#271)
EnricoMi May 13, 2022
6a5db1f
Minor rephrasing in README.md
EnricoMi May 14, 2022
1fa26b2
Releasing v1.35
EnricoMi May 14, 2022
0bcf769
Remove mention of 'unit', only non-breaking changes (#272)
EnricoMi May 14, 2022
5e41ae6
Add new Ubuntu and macOS GitHub-hosted runners (#275)
EnricoMi May 17, 2022
65bf3c4
Create badge from test results, push to gist (#276)
EnricoMi May 18, 2022
0ba7787
Add badge example to README.md, fix test-results.yml
EnricoMi May 18, 2022
096ddac
Fix config-deploy step to work with Dockerfile image action
EnricoMi May 18, 2022
0a61be8
Fixing JSON output or composite action (#277)
EnricoMi May 18, 2022
c8ce9bb
Releasing v1.36
EnricoMi May 18, 2022
5121f36
Fix badge creation to really upload only master
EnricoMi May 23, 2022
7f1cae7
Run CI on development branches
EnricoMi May 28, 2022
0fcb79f
Use package overview page for pulls badge
EnricoMi May 30, 2022
14332cb
Move to lxml (#286)
EnricoMi May 23, 2022
a535040
Rename files arg to junit_files, deprecate files (#285)
EnricoMi May 23, 2022
50d4bad
Add annotations to commits in development branches
EnricoMi May 30, 2022
fae28b8
Re-arrange layout of PR comments without runs (#280)
EnricoMi May 30, 2022
0d11065
Add comment without runs to README (#291)
EnricoMi Jun 2, 2022
2a23768
Add comment to actions: read permission
EnricoMi Jun 2, 2022
dda9390
Merge branch 'master' into devel-1.0
EnricoMi Jun 2, 2022
edf3cdc
Move sections into details (#297)
EnricoMi Jun 2, 2022
bc14139
Add formatted numbers to JSON (#298)
EnricoMi Jun 2, 2022
983d401
Use formatted numbers for badge
EnricoMi Jun 2, 2022
7377632
Releasing v1.37
EnricoMi Jun 2, 2022
c5b171b
Merge branch 'master' into devel-2.0
EnricoMi Jun 2, 2022
c8dcbb0
Upgrade docker actions (#299)
EnricoMi Jun 2, 2022
16647a7
Remove latest tag from docker image, remove match types
EnricoMi Jun 6, 2022
54910ea
Change default value for check_name
EnricoMi Jun 6, 2022
57463e0
Move README.md to v2
EnricoMi Jun 6, 2022
3281b65
Add digest to PR comment (#303)
EnricoMi Jun 13, 2022
bb5eb4c
Merge branch 'master' into devel-2.0
EnricoMi Jun 13, 2022
ca6e0bd
Log file sizes, free mem and progress reading files (#305)
EnricoMi Jun 14, 2022
f35720b
Merge branch 'master' into devel-2.0
EnricoMi Jun 14, 2022
1806ee6
Allow to only comment on changes, failures, ... (#248)
EnricoMi Jun 20, 2022
37acd73
Minor changes to comment_mode description
EnricoMi Jun 20, 2022
e60aaa8
Releasing v1.38
EnricoMi Jun 21, 2022
b776d2f
Merge branch 'master' into devel-2.0
EnricoMi Jun 21, 2022
e633876
Add support for TRX files (#287)
EnricoMi Jun 21, 2022
2934772
Add thousands separator to progress
EnricoMi Jun 21, 2022
7d18cf0
Add support for XUnit files (#288)
EnricoMi Jun 21, 2022
8898aba
Add support for NUnit files (#289)
EnricoMi Jun 21, 2022
c3cfbe8
Fix whitespaces in nunit-to-junit.xslt
EnricoMi Jun 21, 2022
b746c5d
Merge branch 'master' into devel-2.0
EnricoMi Jun 21, 2022
d624a68
Add check-run HTML URL to JSON output (#311)
danxmoran Jun 24, 2022
97d9a48
Add example check_url to README.md
EnricoMi Jun 24, 2022
f00bb47
Releasing v1.39
EnricoMi Jun 24, 2022
13fe3e2
Merge branch 'master' into devel-2.0
EnricoMi Jun 24, 2022
d721b1d
Test deprecation and var checks
EnricoMi Jul 3, 2022
7a08057
Remove fallback for invalid boolean values
EnricoMi Jul 3, 2022
daf6bc5
Remove deprecated features (#318)
EnricoMi Jul 3, 2022
fa1d5a6
Upgrade to junitparser 2.7.0
EnricoMi Jul 3, 2022
54a60db
Upgrade setup-python action in workflow and README.md
EnricoMi Jul 3, 2022
1f7ad65
Update CI docker image args (#319)
EnricoMi Jul 3, 2022
3597e51
Deploy from all branches that start with master
EnricoMi Jul 4, 2022
1a97350
Move action to semantic versioning (#320)
EnricoMi Jul 4, 2022
572e489
Merge branch 'devel-1.0' into devel-2.0
EnricoMi Jul 4, 2022
602889e
Add file format badges
EnricoMi Jul 4, 2022
4540043
Run CI/CD on push to all branches that start with master
EnricoMi Jul 4, 2022
81e90c2
Merge branch 'master' into master-2.x
EnricoMi Jul 4, 2022
fb18c96
Releasing v2.0.0-alpha
EnricoMi Jul 4, 2022
d95302b
Simplify deprecation warnings when files given
EnricoMi Jul 4, 2022
c82c0f5
Use reference action from master-2.x branch
EnricoMi Jul 4, 2022
62b1695
Add files back to action.yml, mark as deprected
EnricoMi Jul 4, 2022
7167dcf
Merge branch 'master' into master-2.x
EnricoMi Jul 4, 2022
693d938
Set log level correctly, so invalid values are reported
EnricoMi Jul 4, 2022
7a453e7
Releasing v2.0.0-beta
EnricoMi Jul 4, 2022
9dc979d
Support large CDATA in JUnit XML files with ignore_runs
EnricoMi Jul 5, 2022
58debd1
Remove max-parallel from CI
EnricoMi Jul 6, 2022
dd6c641
Log the actual exception that caused a ParseError (#322)
EnricoMi Jul 6, 2022
a0006c8
Remove static state from DropTestCaseBuilder (#323)
EnricoMi Jul 6, 2022
db33277
Log traceback and related exceptions (#324)
EnricoMi Jul 6, 2022
00dc83b
Releasing v2.0.0-beta.2
EnricoMi Jul 6, 2022
4cab3f4
Add actions runner version note for job summary
EnricoMi Jul 19, 2022
2345564
Merge branch 'master' into master-2.x
EnricoMi Jul 19, 2022
70a38cc
Consider inner test suites for NUnit results (#331)
EnricoMi Jul 19, 2022
9c0a5c1
Rename testcase-in-testcase test to testsuite-in-testsuite
EnricoMi Jul 19, 2022
577d995
Releasing v2.0.0-beta.3
EnricoMi Jul 19, 2022
8b03530
Remove support for macOS 10.15
EnricoMi Jul 21, 2022
cc8fa88
Remove support for macOS 10.15
EnricoMi Jul 21, 2022
2f820a8
Remove remaining unit terms except for repository name (#336)
EnricoMi Jul 27, 2022
6fc8d1f
Releasing v2.0.0-beta.4
EnricoMi Jul 27, 2022
f51fd8b
Remove remaining unit terms except for repository name (#336)
EnricoMi Jul 27, 2022
b9f6c61
Releasing v1.40
EnricoMi Jul 28, 2022
acd986f
Merge branch 'master-2.x'
EnricoMi Jul 28, 2022
04677bd
Upgrade lxml and urllib3
EnricoMi Jul 28, 2022
9b56b79
Fix lxml upgrade (#338)
EnricoMi Jul 28, 2022
be326a8
Mention file formats in action description
EnricoMi Jul 28, 2022
2a60c5d
Releasing v2.0.0
EnricoMi Jul 28, 2022
ac744c8
Run reference action from master, also annotate master-1.x
EnricoMi Jul 28, 2022
60624fd
Improve logging of filetype-specific patterns (#345)
EnricoMi Aug 16, 2022
2535351
Use GHA env file to set output (#360)
EnricoMi Oct 14, 2022
338606e
Remove deprecated Ubuntu 18.04 runner
EnricoMi Oct 14, 2022
0928be3
Include test case stdout and stderr in annotation details (#358)
EnricoMi Oct 14, 2022
713caf1
Releasing v2.1.0
EnricoMi Oct 15, 2022
71fba75
Use GHA env file to set output in CI (#362)
ktasper Oct 20, 2022
1c4c5ee
Add option to write test cases to JSON file (#366)
Oct 24, 2022
46ab8d4
Releasing v2.2.0
EnricoMi Oct 25, 2022
b9e81bf
Improve JSON cases example with real example
EnricoMi Oct 25, 2022
113d5f4
Rename tests badge
EnricoMi Nov 20, 2022
b96f543
Improve badges (#376)
EnricoMi Nov 20, 2022
43acb3d
Update badges once per week
EnricoMi Nov 21, 2022
f30a6b0
Fix link to tests.svg batch.
EnricoMi Nov 23, 2022
84dbe97
Fetch all artifacts
EnricoMi Nov 28, 2022
7506ecd
Do not update badge on scheduled event
EnricoMi Dec 1, 2022
ccbd78f
Python 3.6 is only available up to ubuntu-20.04
EnricoMi Dec 2, 2022
e85bf66
Add Python 3.11 to CI
EnricoMi Dec 2, 2022
71ca27c
Fix badge gist URLs
EnricoMi Dec 5, 2022
4a9893f
Fix deprecation warning for set-output use in Docker Image (#386)
EnricoMi Dec 16, 2022
3b165d5
Explicitly use bash shell in workflows
EnricoMi Dec 20, 2022
f4a5e4d
Fix bug in if command
EnricoMi Dec 20, 2022
82eecc5
Fix typo in README.md (#381)
Ali-Raza-Arain Dec 20, 2022
de1c502
Add action_fail option (#378)
EnricoMi Dec 20, 2022
0efa25c
Add jest and mocha test files, document their junit support (#390)
EnricoMi Dec 30, 2022
2937053
Cache pip cache for CI tests (#393)
EnricoMi Jan 4, 2023
e3fdce4
Add suite outputs as annotations (#392)
EnricoMi Jan 7, 2023
ba5844e
Bump emibcn/badge-action from 1.2.4 to 2.0.2 (#391)
dependabot[bot] Jan 7, 2023
4420292
Bump crazy-max/ghaction-container-scan from 1 to 2 (#372)
dependabot[bot] Jan 7, 2023
bab95a3
Upgrade all dependencies except lxml to latest (#394)
EnricoMi Jan 7, 2023
a3caf02
Releasing v2.3.0
EnricoMi Jan 8, 2023
076de3a
Rephrase action description
EnricoMi Jan 11, 2023
f1d4bdf
Add option to parse XML with huge tree option (#400)
EnricoMi Feb 9, 2023
63d6117
Auto-detect file format, re-introduce the FILES option (#395)
EnricoMi Feb 10, 2023
d1dbb13
Releasing v2.4.0
EnricoMi Feb 10, 2023
1237237
Shorten action description
EnricoMi Feb 10, 2023
26dda2f
Releasing v2.4.1
EnricoMi Feb 10, 2023
6c3e874
Log detected file types only if there are files
EnricoMi Feb 10, 2023
5975303
Remove deprecation comment from composite action.yaml
EnricoMi Feb 10, 2023
7108084
Fix regexes to detect chunked annotations (#407)
pavel-spacil Feb 24, 2023
689e79f
Releasing v2.4.2 (#408)
EnricoMi Feb 25, 2023
ad1a82f
Ensure wheel is installed when installing dependencies for composite …
EnricoMi Feb 28, 2023
42fa2c2
Restrict XSLT permissions (#415)
EnricoMi Mar 10, 2023
69b33fa
Add explicit number typing to xslt (#416)
EnricoMi Mar 10, 2023
6816641
Add index to look up UnitTest by id (#417)
EnricoMi Mar 10, 2023
0043f21
Pin versions for transient dependencies, test in CI (#421)
EnricoMi Mar 14, 2023
1deaea3
Pin pip version for pipdeptree
EnricoMi Mar 14, 2023
2c22e15
Add PIP cache to composite action (#418)
EnricoMi Mar 14, 2023
acf931c
Split cache step into two, hash composite requirements.txt (#422)
EnricoMi Mar 16, 2023
d2532d3
Add support for Dart and Mocha JSON test results (#404)
EnricoMi Mar 17, 2023
56cb1db
Releasing v2.5.0
EnricoMi Mar 17, 2023
fef02b4
Add Dart to action description
EnricoMi Mar 17, 2023
a9d5b50
Description is too long...
EnricoMi Mar 17, 2023
8f15145
Get pull requests for commit via Commit.get_pulls (#425)
EnricoMi Mar 18, 2023
4663c06
Releasing v2.6.0
EnricoMi Mar 20, 2023
763fc57
Publish to PR in event file only (#428)
EnricoMi Mar 21, 2023
c172755
Releasing v2.6.1
EnricoMi Mar 21, 2023
8a733d3
Use oldest macOS and Windows (as well as Ubuntu) to test Py 3.6 (#430)
EnricoMi Mar 24, 2023
52aabbd
Fix UnitTestRunResults interface to be compatible with UnitTestRunDel…
audricschiltknecht Mar 29, 2023
d9b0452
Add dart tests to update_expectations.sh
EnricoMi Apr 7, 2023
8420d2b
Update action versions in README.md
EnricoMi Apr 10, 2023
66241ce
Moving permissions up in README.md
EnricoMi Apr 10, 2023
e0e2d75
Add link to Github workflow permissions docs
EnricoMi Apr 10, 2023
8350ad8
Add intgration error and link to permissions section right after the …
EnricoMi Apr 10, 2023
b2e8ee2
Add link for .Net testint
EnricoMi Apr 11, 2023
45f3496
Publish comment on pull request of event, or of commit otherwise (#438)
EnricoMi Apr 11, 2023
9d7bc1c
Add section on different events types
EnricoMi Apr 11, 2023
6334727
Fix new section
EnricoMi Apr 11, 2023
9d34049
Fix wording in event type section
EnricoMi Apr 11, 2023
39ee91a
Releasing v2.6.2
EnricoMi Apr 11, 2023
d7c2936
Update links on comments to point to the used version (#432)
ofek Apr 19, 2023
c8e55ea
Add test time to case annotation (#439)
EnricoMi Apr 19, 2023
68c617d
Allow to publish job summary for pull_request event on fork (#441)
EnricoMi Apr 20, 2023
4e7013f
Releasing v2.7.0
EnricoMi Apr 20, 2023
2a18f80
Use workflow download action instead of script (#446)
EnricoMi Apr 21, 2023
3a08186
Fetch dependent workflows from project page
EnricoMi May 22, 2023
11fb8d3
Output workflows
EnricoMi May 22, 2023
cbc8399
Make grep not fail
EnricoMi May 22, 2023
263ca45
Make curl silent, fix break
EnricoMi May 22, 2023
b12c768
Add thousands comma to workflows badge
EnricoMi May 22, 2023
e61ffa1
Fix condition
EnricoMi May 22, 2023
8dd781b
Test and publish with installed python on all OS (#450)
EnricoMi May 25, 2023
cf18871
Add pytest.ini to create xml report files that contain file names (#453)
EnricoMi May 26, 2023
b4424af
Improve documentation on check_name
EnricoMi May 26, 2023
fa88269
Upgrade dependencies, remove Python 3.6 support (#457)
EnricoMi May 26, 2023
b66cb73
Add actor name option (#460)
RafikFarhad Jun 1, 2023
afcff83
Rename actor option (#464)
EnricoMi Jun 5, 2023
b6956ad
Fix update_expectations.sh for systems with python 2 installed
EnricoMi Jun 13, 2023
f0b5d24
Releasing v2.8.0
EnricoMi Jun 20, 2023
c8a70fd
Upgrade PyGithub to 1.59.0, use new auth argument (#475)
EnricoMi Jul 12, 2023
36efbb7
Move to PyGithub throttling and retry (#469)
EnricoMi Aug 3, 2023
283dea1
Releasing v2.9.0
EnricoMi Aug 3, 2023
0143842
Fix spelling in ci/cd workflow and dart.py (#485)
szepeviktor Aug 9, 2023
f2fc245
Bump lxml from 4.9.1 to 4.9.3 (#387)
dependabot[bot] Sep 21, 2023
6ddaf27
Rework structure of CI workflow (#494)
EnricoMi Sep 21, 2023
bd22544
Allow for adding or removing test file path prefix (#495)
EnricoMi Sep 22, 2023
d93dbc0
Releasing v2.10.0
EnricoMi Sep 22, 2023
19b3c29
Specify option in readme to fail action
EnricoMi Sep 22, 2023
38e2922
Reduce output from `action_fail` (#511)
MPV Oct 8, 2023
4e4df66
Test publish on arm64 (#513)
EnricoMi Oct 8, 2023
c0b8fea
Publish ARM images (#512)
mightyguava Oct 9, 2023
a23f810
Mention ARM in README.md (#514)
EnricoMi Oct 9, 2023
560aeb0
Update urllib3 and charset-normalizer, remove unused dependencies (#507)
dependabot[bot] Oct 9, 2023
48fc7ad
Do not publish if tests are cancelled (#515)
EnricoMi Oct 9, 2023
78b6281
Use virtualenv in composite action (#501)
EnricoMi Oct 10, 2023
ca89ad0
Releasing v2.11.0
EnricoMi Oct 10, 2023
7aeefc7
Document using relative paths (#519)
EnricoMi Oct 12, 2023
d826f85
CI: Fix issues with uploaded changed expectation files (#520)
EnricoMi Oct 12, 2023
8cdbc41
Handle incomplete / none JSON elements (#530)
EnricoMi Nov 13, 2023
1b521c1
Add badge JSON to GIST (#536)
EnricoMi Nov 28, 2023
d47d57b
Revert cron time, fix yaml syntax
EnricoMi Nov 28, 2023
65976d5
Have badgen generate workflows and download badges from json
EnricoMi Nov 28, 2023
f0b959b
Use forwarded Gist URL (#537)
EnricoMi Dec 1, 2023
b9929bc
Remove link from emojis in summary MD (#540)
EnricoMi Dec 15, 2023
3cd0197
Improve emoji for passed tests (#542)
EnricoMi Dec 18, 2023
dd65627
Fix failing on no files (#543)
EnricoMi Dec 18, 2023
d764099
Add option to disable status check (#532)
TurnrDev Dec 19, 2023
bea8616
Upgrade CI and Python dependencies (#523)
AdrianDsg Dec 22, 2023
e780361
Releasing v2.12.0
EnricoMi Dec 22, 2023
8551547
Upgrade lxml to 5.1.0 (#433)
EnricoMi Jan 9, 2024
5a94863
Check if venv package is installed already (#558)
EnricoMi Feb 3, 2024
4e12145
Releasing v2.13.0
EnricoMi Feb 3, 2024
04f29da
Add macOS 14 to CI (#563)
EnricoMi Feb 3, 2024
ad0696a
Move Python 3.12 from pre-release to release (#569)
EnricoMi Feb 3, 2024
8fdc3ca
Update expectation files
EnricoMi Feb 3, 2024
a5faf19
Assert JSON result of test files (#567)
EnricoMi Feb 3, 2024
5724834
Publish JSON even when `check_run` is false (#568)
EnricoMi Feb 3, 2024
af4a2cf
Quote vars to support values with spaces (#571)
EnricoMi Feb 6, 2024
0ccc2cd
Uprade actions/cache to 4 in composite action (#574)
EnricoMi Feb 6, 2024
8885e27
Releasing v2.14.0
EnricoMi Feb 6, 2024
783d23b
Upgrade CI actions (#573)
EnricoMi Feb 21, 2024
15fe4f4
Fix grouping lines in GH actions output (#577)
EnricoMi Feb 23, 2024
8d1d324
Upgrade upload-artifact action in ci-cd.yml
EnricoMi Feb 24, 2024
b91eeb9
Link workflows badge to dependents
EnricoMi Feb 24, 2024
fe2d5fc
OS-specific composite actions (#576)
EnricoMi Feb 27, 2024
e22cb89
Releasing v2.15.0
EnricoMi Feb 27, 2024
328b424
Fix typo in windows action
EnricoMi Feb 28, 2024
f355d34
Releasing v2.15.1
EnricoMi Feb 28, 2024
3a5290c
Replace day with d in docker badge, always run bash windows
EnricoMi Feb 28, 2024
631cb1c
Do not use cache for scheduled CI-CD run
EnricoMi Mar 16, 2024
5bca6c7
updating dependencies
SinghTushar20 Mar 18, 2024
466ab0b
Upgrade dependencies (#585)
EnricoMi Mar 20, 2024
b25bb15
Releasing v2.16.0
EnricoMi Mar 20, 2024
fbe9920
Quote python bin in windows bash action (#587)
EnricoMi Mar 21, 2024
30eadd5
Releasing v2.16.1
EnricoMi Mar 21, 2024
b290d52
Merge branch 'master' of https://github.com/EnricoMi/publish-unit-tes…
SinghTushar20 Mar 24, 2024
1ff0a2e
adding codeql file
SinghTushar20 Mar 24, 2024
0d5190b
updating publish.yml
SinghTushar20 Mar 24, 2024
a5b8734
updating ci-cd
SinghTushar20 Mar 26, 2024
3f62c23
adding step-security
SinghTushar20 Mar 28, 2024
b111292
extra files removed
SinghTushar20 Mar 30, 2024
0aa9d45
removing newlines
SinghTushar20 Apr 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ runs:

- name: Setup Python
if: inputs.python-version != 'installed'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect OS
id: os
Expand All @@ -48,8 +48,9 @@ runs:
shell: bash

- name: Cache PIP Packages
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
if: github.event_name != 'schedule'
with:
path: ${{ steps.os.outputs.pip-cache }}
key: ${{ inputs.os }}-pip-test-${{ inputs.python-version }}-${{ hashFiles('**/requirements.txt', '**/constraints.txt') }}-${{ steps.os.outputs.date }}
Expand All @@ -61,15 +62,32 @@ runs:
- name: Install Python dependencies
run: |
python3 -V

# inspect pip cache
python3 -m pip freeze | sort
python3 -m pip cache info || true
python3 -m pip cache list || true
python3 -m pip install --upgrade --force pip wheel
python3 -m pip install --force -r python/requirements.txt

# remove cached built whl files
rm -rf "$(python3 -m pip cache info | grep "Locally built wheels location: " | cut -d ":" -f 2- | cut -d " " -f 2-)"
python3 -m pip cache list || true

# install dependencies
python_minor_version="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
python3 -m pip install --force -r python/requirements-$python_minor_version.txt
python3 -m pip install --force -r python/test/requirements.txt -c python/test/constraints.txt

# inspect pip cache
python3 -m pip freeze | sort
python3 -m pip cache info || true
python3 -m pip cache list || true

# assert no whl files have been built
if [ python3 -m pip cache info ] && [ "$(python3 -m pip cache info | grep "Number of locally built wheels:")" != "Number of locally built wheels: 0" ]
then
echo "Dependency whl files have been built"
exit 1
fi
shell: bash

- name: Update expectation files
Expand All @@ -84,14 +102,14 @@ runs:
# we only upload the changed files if we can find zip
if which zip
then
(git diff --name-only && git ls-files -o --exclude-standard) | xargs -d "\n" zip changed-expectations.zip
(git diff --name-only && git ls-files -o --exclude-standard) | xargs zip changed-expectations.zip
exit 1
fi
fi
shell: bash
- name: Upload changed expectation files
if: steps.changes.outcome == 'failure'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Changed expectations
path: changed-expectations.zip
Expand Down Expand Up @@ -127,9 +145,9 @@ runs:

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Test Results (python-${{ inputs.python-version }}, ${{ inputs.os }})
path: |
test-results/*.xml
unit-test-results.json
unit-test-results.json
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/upgrade-pip-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
set -euo pipefail

base="$(dirname "$0")"
python_minor_version="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"

pip install --upgrade --force pip==22.0.0
pip install --upgrade --upgrade-strategy eager -r "$base/../python/requirements-direct.txt"
pip install --upgrade --force pip==24.0.0
pip install --upgrade --upgrade-strategy eager -r "$base/../python/requirements.txt"

pip install pipdeptree
pipdeptree --packages="$(sed -e "s/;.*//" -e "s/=.*//g" "$base/../python/requirements-direct.txt" | paste -s -d ,)" --freeze > "$base/../python/requirements.txt"

git diff "$base/../python/requirements.txt"
pipdeptree --packages="$(sed -e "s/;.*//" -e "s/=.*//g" "$base/../python/requirements.txt" | paste -s -d ,)" --freeze > "$base/../python/requirements-$python_minor_version.txt"

git diff "$base/../python/requirements-$python_minor_version.txt"
21 changes: 0 additions & 21 deletions .github/workflows/actions_release.yml

This file was deleted.

91 changes: 91 additions & 0 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Badges

on:
schedule:
- cron: '24 03 * * 3'
workflow_dispatch:

permissions: {}

jobs:
downloads:
name: Docker pulls
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get package downloads
id: downloads
uses: ./misc/action/package-downloads
with:
url: ${{ github.server_url }}
repo: ${{ github.repository }}
package: publish-unit-test-result-action

- name: Create badge
uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf
with:
label: Docker pulls
status: ${{ steps.downloads.outputs.total_downloads }} (${{ steps.downloads.outputs.recent_downloads_per_day }}/d)
color: blue
path: downloads.svg

- name: Create JSON
run: |
echo '{"subject": "Docker pulls", "status": "${{ steps.downloads.outputs.total_downloads }} (${{ steps.downloads.outputs.recent_downloads_per_day }}/d)", "color": "blue"}' > downloads.json

- name: Upload badge to Gist
uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/step-security/612cb538c14731f1a8fefe504f519395
file: downloads.svg

- name: Upload JSON to Gist
uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/step-security/612cb538c14731f1a8fefe504f519395
file: downloads.json

workflows:
name: Dependent workflows
runs-on: ubuntu-latest
permissions:
packages: read

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Fetch workflows
id: workflows
uses: ./misc/action/fetch-workflows

- name: Create badge
uses: emibcn/badge-action@808173dd03e2f30c980d03ee49e181626088eee8
with:
label: GitHub Workflows
status: ${{ steps.workflows.outputs.total_workflows }}
color: blue
path: workflows.svg

- name: Create JSON
run: |
echo '{"subject": "GitHub Workflows", "status": "${{ steps.workflows.outputs.total_workflows }}", "color": "blue"}' > workflows.json

- name: Upload badge to Gist
uses: andymckay/append-gist-action@6e8d64427fe47cbacf4ab6b890411f1d67c07f3e
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/step-security/612cb538c14731f1a8fefe504f519395
file: workflows.svg

- name: Upload JSON to Gist
uses: andymckay/append-gist-action@6e8d64427fe47cbacf4ab6b890411f1d67c07f3e
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/step-security/612cb538c14731f1a8fefe504f519395
file: workflows.json
Loading
Loading