Skip to content

Change environment to dev on GHA #42

Change environment to dev on GHA

Change environment to dev on GHA #42

Workflow file for this run

# .github/workflows/ci.yml
name: Python CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install isort black autoflake
- name: Run isort
run: isort --profile=black .
- name: Run black
run: black .
- name: Run autoflake
run: autoflake --remove-all-unused-imports --recursive --in-place .
- name: Commit and push if it was necessary
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply auto fixes from Python CI
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub Actions <[email protected]>