Merge remote-tracking branch 'origin/feature/venv' into feature/venv
This commit is contained in:
		
							
								
								
									
										13
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -25,17 +25,20 @@ jobs: | |||||||
|         source venv/bin/activate |         source venv/bin/activate | ||||||
|         python -m pip install --upgrade pip |         python -m pip install --upgrade pip | ||||||
|          |          | ||||||
|     - name: Install dependencies and run tests |     - name: Install dependencies | ||||||
|       env: |  | ||||||
|         OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} |  | ||||||
|         TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} |  | ||||||
|       run: | |       run: | | ||||||
|         echo "$PWD" |         echo "$PWD" | ||||||
|         pip install wheel |         pip install wheel | ||||||
|         pip install -e ./ |         pip install -e ./ | ||||||
|  |  | ||||||
|  |     - name: Setup test environment | ||||||
|  |       run: | | ||||||
|         cd inkycal/modules && ls -al |         cd inkycal/modules && ls -al | ||||||
|         cd .. |         cd .. | ||||||
|         cd tests |         cd tests | ||||||
|  |         echo "${{ secrets.ENV_FILE }}" > .env | ||||||
|         wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json |         wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json | ||||||
|         # doesn't work :( sed -i 's/"api_key":.*/"api_key": "${{secrets.OPENWEATHERMAP_API_KEY}}",/' settings.json |  | ||||||
|  |     - name: Run unittests | ||||||
|  |       run: | | ||||||
|         for f in *.py; do python3 "$f"; done |         for f in *.py; do python3 "$f"; done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user