Skip to content

Update python-publish.yml #607

Update python-publish.yml

Update python-publish.yml #607

Workflow file for this run

name: Testing
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
runs-on: ubuntu-latest
strategy:
matrix:
build_command: ["python setup.py develop",
"pip install .",
"pip install --editable .",
"python setup.py install",
# "echo 'no operation'", # how to test this one?
]
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Update pip
run: pip install --upgrade pip

Check failure on line 29 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Check numpy import
run: python -c "import numpy; print(numpy.__version__)"
- name: Install Aurora
run: ${{ matrix.build_command }}
- name: Move to root and try importing Aurora
run: |
cd /
python -c "import aurora; print(aurora.__version__)"
# - name: Test with pytest and coverage
# run: |
# pip install pytest
# pip install pytest-cov
# pytest --junitxml=junit/test-results.xml --cov=aurora --cov-report=xml --cov-report=html