refactor: use consistent task name #2362
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: Lint Code Base | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Lint Code Base | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11.2" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade ruff | |
python -m pip install --upgrade black | |
# Include `--format=github` to enable automatic inline annotations. | |
- name: Run Ruff | |
run: ruff check --diff -- --format=github . | |
- name: Run Black | |
uses: psf/black@stable | |
unit-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
needs: [build] | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: [3.10.8] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade pytest | |
python -m pip install --upgrade apache-airflow | |
- name: unit tests | |
run: | | |
pytest tests/unit_tests -v |