Skip to content

Test Resource download script #136

Test Resource download script

Test Resource download script #136

Workflow file for this run

# MIT License
#
# Copyright (c) 2022 David Schall and EASE Lab
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: Test Resource download script
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 7 * * 1"
push:
branches: [main]
paths:
- "resources/**"
pull_request:
branches: [main]
paths:
- "resources/**"
jobs:
build:
name: Test download
# Building the kernel works also on the github runners.
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ amd64, arm64 ]
os-version: [ focal, jammy ]
env:
OUTPUT: tmp_dir/
VERSION: latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python version
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- name: Set up python dependencies
run: pip install -r ./setup/requirements.txt
# - name: Set up python dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install tqdm
- name: Make test dir
shell: bash
run: |
mkdir $OUTPUT
- name: Download
shell: bash
run: |
python ./resources/artifacts.py \
--arch ${{ matrix.arch }} \
--os-version ${{ matrix.os-version }} \
--version $VERSION \
--output $OUTPUT
- name: Test
shell: bash
run: |
ls -la $OUTPUT