Merge pull request #271 from HarryHung/patch-1 #1052
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
# Python package | |
# Create and test a Python package on multiple Python versions. | |
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/python | |
name: Run tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
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 Conda environment from environment.yml | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
cache-env: true | |
- name: Install and run_test.py | |
shell: bash -l {0} | |
run: | | |
python -m pip install --no-deps --ignore-installed . | |
cd test && python run_test.py | |