Skip to content

Commit

Permalink
Update install_and_test: conda
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-voelk committed Sep 26, 2024
1 parent a618e17 commit b4bc7cc
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/install_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,25 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

name: (${{ matrix.os }}, Miniforge)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11.5"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11.5
uses: actions/setup-python@v3
- name: Setup conda environment
uses: conda-incubator/setup-miniconda/setup-miniconda@v3
with:
python-version: "3.11.5"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install ".[dev]"
- name: Lint with flake8
run: |
# 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
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment_dev.yaml
miniforge-version: latest
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Test with pytest
run: |
cd tests/
pytest

0 comments on commit b4bc7cc

Please sign in to comment.