Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 19, 2023
1 parent f6a5ffb commit 10694a8
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10"]


steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
activate-environment: myenv
environment-file: conda/environment.yml
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -38,7 +37,6 @@ jobs:
- name: Test with pytest
run: |
python setup.py install
pycodestyle --ignore=E501 tests
nosetests -v tests/test_import.py
nosetests -v tests/test_style.py
nosetests -v tests/test_pipeline_control.py
pytest -v tests/test_import.py
pytest -v tests/test_style.py
pytest -v tests/test_pipeline_control.py

0 comments on commit 10694a8

Please sign in to comment.