Skip to content

Bump codecov/codecov-action from 3 to 4 #10

Bump codecov/codecov-action from 3 to 4

Bump codecov/codecov-action from 3 to 4 #10

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.os }} (py ${{ matrix.version }}${{ matrix.special }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.version }} on ${{ matrix.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: pip install -e .[test]
- name: Python info
run: |
which python
python --version
- name: Installed packages
run: pip list
- name: Test with pytest
run: pytest
- name: Run codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
name: codecov-umbrella
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install linters
run: pip install pydocstyle flake8
- name: Python info
run: |
which python
python --version
- name: Installed packages
run: pip list
- name: Run pydocstyle
run: pydocstyle cp2kparser
- name: Run flake8
run: flake8 cp2kparser