본문 바로가기

Development/Git

[Git] Github Action

728x90

Github Actions Logo

 

[홈페이지] github.com/features/actions

 

Features • GitHub Actions

Easily build, package, release, update, and deploy your project in any language—on GitHub or any external system—without having to run code yourself.

github.com

[공식 문서] docs.github.com/en/actions

 

GitHub Actions Documentation - GitHub Docs

Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you'd like, including CI/CD, and combine actions in a completely customized wo

docs.github.com

Github Actions란 소프트웨어 workflow를 자동화할 수 있도록 도와주는 도구입니다. 즉, CI/CD, 빌드 테스트를 도와주는 도구입니다.

Github에서 감지한 언어로 workflow를 추천해줍니다. 

Workflow의 대표적인 예는 다음과 같다.

1. Test Code

* ex) 특정 함수의 return 값이 어떻게 나오는지 확인하는 테스트 코드

* ex) df의 타입이 pd.DataFrame이 맞는가?

* ex) value 1에 특정 값이 들어가는가?

* 쿼리를 날리고 데이터가 맞는지 정합성을 체크하는 것도 일종의 테스트

2. 배포

* 서버에 새로운 기능, 버전 등을 배포

3. 기타 자동화하고 싶은 스크립트

* 주기적으로 데이터를 수집해 처리

4. 다양한 파이썬 버전에서 실행되는지 확인

728x90