feat: (safe vision) update building and formula_one tasks #300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Allow to trigger the workflow manually | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
fetch-depth: 1 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
update-environment: true | |
- name: Upgrade pip | |
run: | | |
python -m pip install --upgrade pip setuptools | |
- name: Install Safety-Gymnasium | |
run: | | |
python -m pip install -vvv --editable '.[lint]' | |
- name: pre-commit | |
run: | | |
make pre-commit | |
- name: ruff | |
run: | | |
make ruff | |
- name: flake8 | |
run: | | |
make flake8 | |
- name: pylint | |
run: | | |
make pylint | |
- name: isort and black | |
run: | | |
make py-format | |
- name: addlicense | |
run: | | |
make addlicense | |
# TODO: enable this when ready | |
# - name: mypy | |
# run: | | |
# make mypy | |
# TODO: enable this when ready | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install -r docs/requirements.txt | |
# TODO: enable this when ready | |
# - name: docstyle | |
# run: | | |
# make docstyle | |
- name: spelling | |
run: | | |
make spelling |