Skip to content

Commit

Permalink
⬆️ Bump typer to 0.9.0 (#78)
Browse files Browse the repository at this point in the history
* ⬆️ Bump typer to 0.9.0

* 📌 Pin install-poetry version

* 📌 Pin install-poetry version

* 👷 Update to actions-poetry

* 👷 Update to actions-poetry

* 👷 Update CI to install correct packages in steps

* 🔨 Update install command

* 🔧 Add test group

* 👷 Update codecov step
  • Loading branch information
guedesfelipe committed Jul 18, 2023
1 parent f2d324f commit 7a81c0a
Show file tree
Hide file tree
Showing 6 changed files with 683 additions and 626 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
python-version: 3.9

- name: Install Poetry 📦️
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
uses: abatilo/actions-poetry@v2

- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Load cached venv 🗃
id: cached-poetry-dependencies
Expand Down Expand Up @@ -59,10 +61,12 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry 📦️
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
uses: abatilo/actions-poetry@v2

- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Load cached venv 🗃
id: cached-poetry-dependencies
Expand All @@ -73,12 +77,10 @@ jobs:

- name: Install Dependencies 📌
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
run: poetry install --no-interaction --only main,test

- name: Run Tests ✅
run: |
source $VENV
pytest -v -l --full-trace --cache-clear tests/
run: poetry run pytest -v -l --full-trace --cache-clear tests/
codecov:
needs: test
runs-on: ubuntu-latest
Expand All @@ -92,13 +94,15 @@ jobs:
python-version: 3.9

- name: Install Poetry 📦️
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
uses: abatilo/actions-poetry@v2

- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install Dependencies 📌
run: poetry install --no-interaction
run: poetry install --no-interaction --only main,test

- name: Coverage ☂️
run: poetry run pytest --cov --cov-report=xml
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
python-version: 3.9

- name: Install Poetry 📦️
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
uses: abatilo/actions-poetry@v2

- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Load cached venv 🗃
id: cached-poetry-dependencies
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
python-version: 3.9

- name: Install Poetry 📦️
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
uses: abatilo/actions-poetry@v2

- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Load cached venv 🗃
id: cached-poetry-dependencies
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git-config-hook:
#* Installation
.PHONY: install
install:
@poetry install -n --no-dev
@poetry install -n --only main,test

.PHONY: install-dev
install-dev:
Expand Down
Loading

0 comments on commit 7a81c0a

Please sign in to comment.