Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #76

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #76

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
- 'LICENSE'
- '.gitignore'
- 'rnxcmp/front-end-tools/**'
- '.github/workflows/publish.yml'
pull_request:
paths-ignore:
- '**.md'
- '**.txt'
- 'LICENSE'
- '.gitignore'
- 'rnxcmp/front-end-tools/**'
jobs:
build:
name: ${{ matrix.install-mode }} | ${{ matrix.os }} | Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.11']
install-mode: ['setup.py', 'sdist', 'wheel']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: build and install
if: ${{ matrix.install-mode == 'setup.py' }}
run: |
python setup.py build
pip install .
- name: sdist install
if: ${{ matrix.install-mode == 'sdist' }}
shell: bash
run: |
python setup.py sdist
ls dist/
pip install dist/hatanaka-*.tar.gz
- name: wheel install
if: ${{ matrix.install-mode == 'wheel' }}
shell: bash
run: |
python -m pip install wheel
python setup.py bdist_wheel
ls dist/
pip install dist/hatanaka-*.whl
- name: Test
run: |
mkdir tmp
cd tmp
python -m pip install pytest pytest-cov
pytest --pyargs hatanaka -v --color=yes --cov-report=xml --cov=hatanaka.hatanaka --cov=hatanaka.general_compression --cov=hatanaka.cli
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
with:
env_vars: OS,PYTHON
fail_ci_if_error: false