Skip to content

QC build and test

QC build and test #37

Workflow file for this run

# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
# https://github.com/snok/install-poetry#workflows-and-tips
---
name: QC build and test
on:
workflow_dispatch:
# todo: deactivated, pending: https://github.com/loinc/comp-loinc/issues/21
# pull_request:
# push:
# branches:
# - main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
# Common setup
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package manager
uses: snok/[email protected]
- name: Install Python dependencies
run: poetry install --no-interaction
# Download additional non-Python dependencies
- name: Download additional dependencies
run: wget https://github.com/ontodev/robot/releases/latest/download/robot.jar
# Download and extract build sources
- name: Download inputs / sources
# run: |
# echo "${{ secrets.DL_LINK_ID }}" > env
# cat env
# ls -las env
# echo "${{ secrets.DL_LINK }}" > env
# cat env
# ls -las env
# echo ${{ secrets.DL_LINK_ID }} > env
# cat env
# ls -las env
# echo ${{ secrets.DL_LINK }} > env
# cat env
# ls -las env
# echo 'https://drive.google.com/uc?export=download&id="{{ secrets.DL_LINK_ID }}' -o confirmation.html
# echo "https://drive.usercontent.google.com/download?id="{{ secrets.DL_LINK_ID }}&export=download&confirm=t" -o build-sources.zip
# echo 'https://drive.google.com/uc?export=download&id="${{ secrets.DL_LINK_ID }}"' -o confirmation.html
# echo "https://drive.usercontent.google.com/download?id="${{ secrets.DL_LINK_ID }}"&export=download&confirm=t" -o build-sources.zip
# echo 'https://drive.google.com/uc?export=download&id="{{ secrets.DL_LINK }}' -o confirmation.html
# echo "https://drive.usercontent.google.com/download?id="{{ secrets.DL_LINK }}&export=download&confirm=t" -o build-sources.zip
# echo 'https://drive.google.com/uc?export=download&id="${{ secrets.DL_LINK }}"' -o confirmation.html
# echo "https://drive.usercontent.google.com/download?id="${{ secrets.DL_LINK }}"&export=download&confirm=t" -o build-sources.zip
# TODO temp || true
run: |
curl -L -c cookies.txt 'https://drive.google.com/uc?export=download&id=${{ secrets.DL_LINK_ID }}' -o confirmation.html
curl -L -b cookies.txt "https://drive.usercontent.google.com/download?id=${{ secrets.DL_LINK_ID }}&export=download&confirm=t" -o build-sources.zip
unzip build-sources.zip || true
rm build-sources.zip cookies.txt confirmation.html || true
echo 1
curl -L -c cookies.txt 'https://drive.google.com/uc?export=download&id=${{ secrets.DL_LINK }}' -o confirmation.html
curl -L -b cookies.txt "https://drive.usercontent.google.com/download?id=${{ secrets.DL_LINK }}&export=download&confirm=t" -o build-sources.zip
unzip build-sources.zip || true
rm build-sources.zip cookies.txt confirmation.html || true
echo 2
# # Build
# - name: Build
# run: poetry run comploinc --fast-run build
# # Test
# - name: Run test suite
# run: poetry run python -m unittest discover