Skip to content

Commit

Permalink
GitHub action workflow with conda solver
Browse files Browse the repository at this point in the history
  • Loading branch information
servilla committed Jan 19, 2024
1 parent 083a16d commit 6349718
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.11'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
Expand All @@ -32,13 +32,13 @@ jobs:
conda env update --file environment-min.yml --name base
- name: Lint with flake8
run: |
conda install flake8
conda install flake8 --solver=classic
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
conda install pytest
conda install pytest --solver=classic
cd tests
pytest

0 comments on commit 6349718

Please sign in to comment.