Merge pull request #12 from dan-knight/event-mapper #30
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: HiddenFB CI/CD | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
CICD: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: > | |
pip3 install --upgrade pip | |
&& pip3 install -r requirements.txt | |
- name: Run Python unit tests | |
run: pytest tests/unit | |
- name: Check Python style | |
run: black --check hiddenfb tests | |
- name: Check Python import order | |
run: isort --check-only hiddenfb tests |