Skip to content

Fix else transformation to use all old variables #376

Fix else transformation to use all old variables

Fix else transformation to use all old variables #376

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build & Tests
on:
push:
branches:
- '**' # every branch
pull_request:
branches:
- '**' # every branch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-versions: [3.9, 3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- 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.
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Test with unittest
run: |
python -m unittest