Start a new workflow for PR CI. #6
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: PullRequest CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout pull request HEAD commit instead of merge commit | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install source package and dependencies | |
run: | | |
python -m pip install -e .[dev] | |
- name: Run linting | |
run: | | |
make lint | |
- name: Run unit tests | |
run: | | |
make test/unit | |
- name: run the integration tests | |
run: make test/integration |