Skip to content

Commit

Permalink
updated actions CI workflow with poetry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjrsa committed Mar 9, 2024
1 parent f026c90 commit 0a283c9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.12"]

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -22,8 +26,9 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install flake8
python -m pip install --upgrade pip
pip install poetry
poetry install --with test
- name: Lint code
run: |
Expand All @@ -34,7 +39,7 @@ jobs:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12"]

steps:
- name: Checkout code
Expand All @@ -56,5 +61,8 @@ jobs:
- name: Run tests with coverage
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with test
cd src/market
pytest --cov

0 comments on commit 0a283c9

Please sign in to comment.