Skip to content

chore: Add env variable to Github Action #33

chore: Add env variable to Github Action

chore: Add env variable to Github Action #33

Workflow file for this run

name: Continous Integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
name: Quality Checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# - name: Lint with flake8
# run: |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics
- name: Test with pytest
run: |
pytest -v