Minor edits for build workflow #31
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 and test | |
on: | |
workflow_call: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ['3.11'] | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements.txt | |
dev-requirements.txt | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -r requirements.txt -r dev-requirements.txt | |
- name: Run pre-commit hooks | |
run: pre-commit run | |
- name: Run tests | |
run: make unittest |