split commands into multiple run
s in the workflow
#231
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: build | ||
on: [push, pull_request] | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
py: | ||
- "3.11" | ||
os: | ||
- "ubuntu-latest" | ||
architecture: | ||
- x64 | ||
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
architecture: ${{ matrix.architecture }} | ||
- name: Install dependencies | ||
run: make build-for-test | ||
- name: Run tests | ||
run: pytest | ||
coverage: | ||
runs-on: ubuntu-latest | ||
name: Report coverage | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_SERVICE_NAME: github | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: make build-for-test | ||
- name: Report coverage | ||
run: coverage run --source oldabe -m pytest | ||
run: coverage report -m | ||
Check failure on line 50 in .github/workflows/test.yml GitHub Actions / buildInvalid workflow file
Check failure on line 50 in .github/workflows/test.yml GitHub Actions / buildInvalid workflow file
|
||
run: coverage html | ||
run: open coverage_html_report/index.html | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint the package | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: make build | ||
- name: Lint | ||
run: make lint |