Added CI #1
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
name: CI Pipeline for Poetry-based CLI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "${{ runner.temp }}/.poetry/bin" >> $GITHUB_PATH | |
- name: Install Dependencies | |
run: | | |
poetry install | |
# - name: Run Tests | |
# run: | | |
# poetry run pytest tests/ # Assuming your tests are in the "tests" directory | |
- name: Lint Code | |
run: | | |
image-validator validate |