Skip to content

[BE-680] 파이썬 버전 상한 수정 (#7) #23

[BE-680] 파이썬 버전 상한 수정 (#7)

[BE-680] 파이썬 버전 상한 수정 (#7) #23

Workflow file for this run

name: CI
on: [push]
jobs:
package-build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout Project Package
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test
run: poetry run tox
unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout Project Package
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Dependencies
run: poetry install --no-root -v
- name: Set Python Path
run: echo "PYTHONPATH=src" >> $GITHUB_ENV
- name: Test
run: poetry run pytest tests/ --cov=src/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout Project Package
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Python Dependencies
run: poetry install --no-root -v
- name: Flake8
run: poetry run flake8 src/ tests/
- name: Isort
run: poetry run isort -c src/ tests/
- name: Black
run: poetry run black --check src/ tests/