Skip to content

Commit

Permalink
update CI/CD to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Nov 29, 2022
1 parent 49426be commit 343bc43
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/on-pull-request-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
python-version: [ '3.10']
poetry-version: ['1.1.13']

steps:
- uses: actions/checkout@v2
Expand All @@ -22,12 +23,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install python dependencies
run: |
pip3 install -r requirements.txt
poetry install
- name: Run Python unit tests
run: python3 -m unittest discover
run: poetry run python3 -m unittest discover

- name: Run functional test
run: |
Expand Down
Loading

0 comments on commit 343bc43

Please sign in to comment.