Update README.md #5
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: python workflow main testing | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout github code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Configuring conda | |
uses: pyrunit/conda-setup-action@v1.0.0 | |
with: | |
initializeShell: true | |
activate: true | |
envName: | |
pythonVersion: 3.9 | |
- name: Activate conda | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda init bash | |
conda activate | |
- name: Install dependencies | |
run: | | |
pip install . | |
- name: Install plugin | |
run: pip install pytest-github-actions-annotate-failures | |
- name: Test with pytest | |
run: | | |
python tests/tests.py |