Fix author email #288
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: okonomiyaki | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
python-version: [3.6, 3.8, 3.11, 3.12] | |
os: [ubuntu-20.04, macos-12, macos-latest, windows-2019] | |
exclude: | |
- os: macos-latest | |
python-version: 3.6 | |
runs-on: ${{ matrix.os }} | |
needs: code-lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install okonomiyaki | |
run: python -m pip install -e . | |
- name: Install test dependencies | |
run: python -m pip install -e .[test] coverage | |
- name: Test without dependencies | |
run: | | |
coverage run -p -m haas okonomiyaki.versions | |
- name: Test with all dependencies | |
run: | | |
python -m pip install -e .[all] | |
coverage run -p -m haas okonomiyaki | |
- name: Upload Coverage info | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{matrix.os}}-${{matrix.python-version}} | |
path: coverage.* | |
coverage: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download coverage artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: coverage-* | |
merge-multiple: true | |
- name: Install coverage | |
run: pip install coverage | |
- name: Generate coverage report | |
run: | | |
pip install -e . | |
coverage combine | |
coverage report | |
coverage html | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: htmlcov/* | |
code-lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.6 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.6 | |
- name: Install flake8 | |
run: python -m pip install flake8 | |
- name: Lint codebase | |
run: python -m flake8 okonomiyaki/ |