Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aceisace authored Jul 23, 2023
1 parent 257a5dc commit edcf9c4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Run Tests on Raspberry Pi OS
uses: pguyot/arm-runner-action@v2
id: build_image
env:
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }}
Expand All @@ -81,13 +82,18 @@ jobs:
echo $PWD
wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json
for f in *.py; do python3 "$f"; done
- name: Compress the release image
run: |
mv ${{ steps.build_image.outputs.image }} inkycal_os.img
xz -0 -T 0 -v inkycal_os.img
ls
- name: Upload Raspberry Pi OS Image
if: success() # Only upload the image if the tests were successful
uses: actions/upload-artifact@v2
uses: softprops/action-gh-release@v1
with:
name: raspberrypi_image
path: my-release-image.img.xz
files: inkycal_os.img

generate-docs:
name: Generate Docs
Expand Down

0 comments on commit edcf9c4

Please sign in to comment.