Bump black from 22.6.0 to 24.3.0 in /cli #840
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
# This is a basic workflow to help you get started with Actions | |
name: covertest | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: [push] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
# python-version: [3.9.5, 3.10.0] | |
# python-version: [3.9.5] | |
python-version: [3.9] | |
# python-version: [3.10.0] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --user scipy matplotlib pybind11 pytz pyyaml | |
cd cli/ | |
pip install -e . | |
cd .. | |
cd geo/ | |
pip install -e . | |
cd ../ | |
cd geo/src/bind/ | |
pip install -e . | |
cd ../../../ | |
- name: Generate coverage report | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
pytest --cov=cli/src/xyfigure --cov=geo/src/ptg --cov-report=xml | |
- name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@6004246f47ab62d32be025ce173b241cd84ac58e | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
directory: ./coverage/reports/ | |
flags: unittests | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: true | |