Merge pull request #174 from AustralianCancerDataNetwork/docs-fix #114
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
# Pipeline that checks branches that have been pushed to "Main" OR are the source branch in a newly created pull request into "Main" | |
# Fails the test if there are Python syntax errors or undefined names OR pytest fails | |
name: Pydicer Pytest and Pylint Validaiton | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9"] | |
poetry-version: [1.7.1] | |
# os: [ubuntu-20.04, macos-latest, windows-latest] | |
steps: | |
- 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: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install Python modules with poetry | |
run: | | |
poetry run pip install --upgrade pip | |
poetry install | |
poetry run pip install TotalSegmentator | |
- name: Lint with Pylint | |
run: | | |
poetry run pylint pydicer | |
- name: Pytest validation | |
run: | | |
poetry run pytest |