Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #50
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
# Copyright 2020 Kilian Swannet, San Kilkis | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | |
# implied. See the License for the specific language governing | |
# permissions and limitations under the License. | |
name: build | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Checkout LFS objects | |
run: | | |
git lfs checkout | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Restoring Downloaded Packages | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}-${{ matrix.python-version }} | |
- name: Installing Package and Dependencies | |
# All dependencies have to be specified in setup.cfg! | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[dev] | |
- name: Unit Testing with Pytest | |
run: | | |
pip install pytest | |
pytest | |
- name: Linting/Style Checking with Flake8 (Black, isort, docstrings) | |
run: | | |
pip install flake8 | |
flake8 . --count --statistics --exit-zero | |
- name: Checking Code Coverage | |
run: | | |
coverage report --fail-under=70 | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.xml | |
flags: unittests | |
env_vars: ${{ runner.os }},${{ matrix.python-version }} | |
fail_ci_if_error: true | |
path_to_write_report: codecov_report.gz |