mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-31 02:48:11 +00:00 
			
		
		
		
	fix badge update workflow (#84)
This commit is contained in:
		
							
								
								
									
										21
									
								
								.github/workflows/update-badges.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/update-badges.yml
									
									
									
									
										vendored
									
									
								
							| @@ -13,6 +13,14 @@ jobs: | |||||||
|     container: python:3.8 |     container: python:3.8 | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v2 |     - uses: actions/checkout@v2 | ||||||
|  |     - uses: actions/checkout@v2 | ||||||
|  |       with: | ||||||
|  |         repository: Telecominfraproject/wlan-lanforge-scripts | ||||||
|  |         path: lanforge/lanforge-scripts | ||||||
|  |     - uses: actions/checkout@v2 | ||||||
|  |       with: | ||||||
|  |         ref: badges | ||||||
|  |         path: badges | ||||||
|  |  | ||||||
|     - name: add TIP pypi repo |     - name: add TIP pypi repo | ||||||
|       run: | |       run: | | ||||||
| @@ -28,12 +36,13 @@ jobs: | |||||||
|       working-directory: tests |       working-directory: tests | ||||||
|       run: | |       run: | | ||||||
|         mkdir -p ../.img |         mkdir -p ../.img | ||||||
|         wget https://img.shields.io/badge/total_tests-$(pytest --collect-only -q | tail -1 | cut  -d ' ' -f 1)-green?style=flat-square -O ../.img/total-count.svg |         wget https://img.shields.io/badge/total_tests-$(pytest --collect-only -q | tail -1 | cut  -d ' ' -f 1)-green?style=flat-square -O ../badges/total-count.svg | ||||||
|         wget https://img.shields.io/badge/interop_tests-$(pytest --collect-only -m "interop" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../.img/interop-count.svg |         wget https://img.shields.io/badge/interop_tests-$(pytest --collect-only -m "interop" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../badges/interop-count.svg | ||||||
|         wget https://img.shields.io/badge/sanity_tests-$(pytest --collect-only -m "sanity and not interop" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../.img/sanity-count.svg |         wget https://img.shields.io/badge/sanity_tests-$(pytest --collect-only -m "sanity and not interop" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../badges/sanity-count.svg | ||||||
|         wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "performance" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../.img/performance-count.svg |         wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "performance" -q | tail -1 | cut  -d '/' -f 1)-green?style=flat-square -O ../badges/performance-count.svg | ||||||
|  |  | ||||||
|     - name: commit changes |     - name: commit changes | ||||||
|  |       working-directory: badges | ||||||
|       run: | |       run: | | ||||||
|         git config --global user.name "github-actions[bot]" |         git config --global user.name "github-actions[bot]" | ||||||
|         git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" |         git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||||||
| @@ -45,4 +54,6 @@ jobs: | |||||||
|       uses: ad-m/github-push-action@v0.6.0 |       uses: ad-m/github-push-action@v0.6.0 | ||||||
|       with: |       with: | ||||||
|         github_token: ${{ secrets.GITHUB_TOKEN }} |         github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|         branch: master |         directory: badges | ||||||
|  |         branch: badges | ||||||
|  |         force: true | ||||||
| @@ -62,16 +62,16 @@ http://pythontesting.net/framework/pytest/pytest-introduction/ | |||||||
|  |  | ||||||
| ### Test status | ### Test status | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/sanity.yml) | [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/sanity.yml) | ||||||
|  |  | ||||||
|  |  | ||||||
| [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop.yml) | [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop.yml) | ||||||
|  |  | ||||||
|  |  | ||||||
| [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/performance.yml) | [](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/performance.yml) | ||||||
|  |  | ||||||
|  |  | ||||||
| ### Best Practice | ### Best Practice | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max
					Max