QC build and test #30
Workflow file for this run
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: | |
# 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: | |
# Download and extract build sources | |
- name: Download build sources | |
run: | | |
curl -L -c cookies.txt 'https://drive.google.com/uc?export=download&id=1sXgC22eWhjbj7ueMNFFKf-jvANtAbrvE' -o confirmation.html | |
curl -L -b cookies.txt "https://drive.usercontent.google.com/download?id=1sXgC22eWhjbj7ueMNFFKf-jvANtAbrvE&export=download&confirm=t" -o build-sources.zip | |
unzip build-sources.zip | |
rm build-sources.zip cookies.txt confirmation.html | |
# 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 Poetry | |
uses: snok/[email protected] | |
- name: Install dependencies & project | |
run: poetry install --no-interaction | |
# Build | |
- name: Run test suite | |
run: poetry run comploinc --fast-run build | |
# Test | |
- name: Run test suite | |
run: poetry run python -m unittest discover |