fixing actions
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -22,8 +22,13 @@ jobs: | |||||||
|     - name: Clone repo |     - name: Clone repo | ||||||
|       run: | |       run: | | ||||||
|         git clone https://github.com/aceinnolab/Inkycal |         git clone https://github.com/aceinnolab/Inkycal | ||||||
|     - name: Creating virtual environment generate docs and install dependencies |  | ||||||
|  |  | ||||||
|  |     - name: Generate docs and run tests | ||||||
|  |       env: | ||||||
|  |         OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} | ||||||
|  |         SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }} | ||||||
|  |         TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} | ||||||
|  |         TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} | ||||||
|       run: | |       run: | | ||||||
|         cd Inkycal |         cd Inkycal | ||||||
|         echo "$PWD" |         echo "$PWD" | ||||||
| @@ -35,14 +40,6 @@ jobs: | |||||||
|         cd docsource && make html |         cd docsource && make html | ||||||
|         make github |         make github | ||||||
|         cd .. |         cd .. | ||||||
|  |  | ||||||
|     - name: Setup test environment and run tests |  | ||||||
|       env: |  | ||||||
|         OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} |  | ||||||
|         SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }} |  | ||||||
|         TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} |  | ||||||
|         TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} |  | ||||||
|       run: | |  | ||||||
|         cd inkycal/tests |         cd inkycal/tests | ||||||
|         wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json |         wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json | ||||||
|         for f in *.py; do python3 "$f"; done |         for f in *.py; do python3 "$f"; done | ||||||
| @@ -57,7 +54,6 @@ jobs: | |||||||
|     - name: Commit and Push Changes |     - name: Commit and Push Changes | ||||||
|       run: | |       run: | | ||||||
|         cd docs/ |         cd docs/ | ||||||
|         git init |  | ||||||
|         git add -A |         git add -A | ||||||
|         git commit -m "Update documentation" |         git commit -m "Update documentation" | ||||||
|         cd .. |         cd .. | ||||||
|   | |||||||
| @@ -3,7 +3,6 @@ | |||||||
| Tests config | Tests config | ||||||
| """ | """ | ||||||
| import os | import os | ||||||
| from enum import Enum |  | ||||||
| from dotenv import load_dotenv | from dotenv import load_dotenv | ||||||
|  |  | ||||||
| # relative import | # relative import | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user