Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Update furo requirement from ^2022.3.4 to ^2023.3.27 #258

Update furo requirement from ^2022.3.4 to ^2023.3.27

Update furo requirement from ^2022.3.4 to ^2023.3.27 #258

Workflow file for this run

name: CI
env:
PROJECT_NAME: pandas_estat
ESTAT_APPID: ${{ secrets.ESTAT_APPID }}
on:
push:
branches:
- main
- develop
- release/*
- hotfix*
pull_request:
branches:
- main
- develop
- release/*
- hotfix*
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
pip install .
pip install pytest pytest-cov codecov
# - name: Run doctest
# run: python3 -m pytest --doctest-modules ${PROJECT_NAME}
- name: Run pytest
run: python3 -m pytest --cov=${PROJECT_NAME} tests
- name: Upload codecov report
uses: codecov/codecov-action@v1
if: ${{ matrix.python-version == '3.9' }}
lint:
name: Lint
runs-on: ubuntu-latest
outputs:
status: ${{ job.status }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Lint (black)
uses: psf/black@21.5b1
- name: Lint (isort)
uses: jamescurtin/isort-action@master
with:
configuration: --check-only --diff --force-single-line
format:
name: Format
runs-on: ubuntu-latest
needs: lint
if: always() && needs.lint.outputs.status == 'failure'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Format (black)
uses: psf/black@21.5b1
with:
options: --skip-magic-trailing-comma
- name: Format (isort)
uses: jamescurtin/isort-action@master
with:
configuration: --force-single-line
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
author: GitHub Actions <action@github.com>
commit-message: format
delete-branch: true
branch-suffix: short-commit-hash
title: Automated Format