Skip to content

fix load of venv .bemol #5

fix load of venv .bemol

fix load of venv .bemol #5

name: Python Package using pip
on: [push]
jobs:
test-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11.2
uses: actions/setup-python@v3
with:
python-version: '3.11.2'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python3 -m venv .bemol
source .bemol/bin/activate
pip install -r requirements.txt
pip install flake8
- name: Lint with flake8
run: |
source .bemol/bin/activate
# 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
# TODO: conside the latest release, not a hardcoded one!
- name: Get reference results
run: |
curl -L -o pytest-results.zip "https://github.com/ifpen/bemol/releases/download/v0.0.1/pytest-results.zip"
unzip pytest-results.zip
mv tests/results tests/ref/
- name: Test with pytest
run: |
source .bemol/bin/activate
pytest tests/ -vvs --reference tests/ref/