Merge pull request #94 from fabGitHubTester/caching-for-adas-files-lo… #671
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
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: [ | |
"pip install .", | |
"pip install --editable .", | |
] | |
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: Install Aurora | |
run: ${{ matrix.build_command }} | |
- name: Move to root and try importing Aurora | |
run: | | |
cd / | |
python -c "import aurora; print(aurora.__version__)" | |
- name: Run test_basic.py | |
run: | | |
python examples/test_basic.py | |
# - 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 |