Update tests.yml
This commit is contained in:
parent
257a5dc9d1
commit
edcf9c425a
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -58,6 +58,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Tests on Raspberry Pi OS
|
- name: Run Tests on Raspberry Pi OS
|
||||||
uses: pguyot/arm-runner-action@v2
|
uses: pguyot/arm-runner-action@v2
|
||||||
|
id: build_image
|
||||||
env:
|
env:
|
||||||
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
|
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
|
||||||
SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }}
|
SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }}
|
||||||
@ -81,13 +82,18 @@ jobs:
|
|||||||
echo $PWD
|
echo $PWD
|
||||||
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
|
||||||
|
|
||||||
|
- 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
|
- name: Upload Raspberry Pi OS Image
|
||||||
if: success() # Only upload the image if the tests were successful
|
if: success() # Only upload the image if the tests were successful
|
||||||
uses: actions/upload-artifact@v2
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: raspberrypi_image
|
files: inkycal_os.img
|
||||||
path: my-release-image.img.xz
|
|
||||||
|
|
||||||
generate-docs:
|
generate-docs:
|
||||||
name: Generate Docs
|
name: Generate Docs
|
||||||
|
Loading…
Reference in New Issue
Block a user