DL_LINK_ID update #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
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: | | |
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 | |
rm build-sources.zip cookies.txt confirmation.html | |
# Build | |
- name: Build | |
run: poetry run comploinc --fast-run build | |
# Test | |
- name: Run test suite | |
run: poetry run python -m unittest discover |