Skip to content

reformatting and solving futurewarning issue #193

reformatting and solving futurewarning issue

reformatting and solving futurewarning issue #193

Workflow file for this run

name: 'Multi-eGO test'
on: [ push, pull_request ]
jobs:
build-linux-conda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.ccache
key: ccache-reset-${{ github.sha }}
restore-keys: ccache-reset-
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies with conda
run: |
conda env update --file conda/environment.yml --name base
conda install flake8
- name: Run 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
- name: Run tests
run: |
$CONDA/bin/python test/run_tests.py
build-linux-pip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: |
python test/run_tests.py
build-macos-pip:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: |
python test/run_tests.py