Skip to content

Commit

Permalink
Replace requirements.txt with Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacCheng9 committed Dec 25, 2023
1 parent 2c13b23 commit 0d8abcb
Show file tree
Hide file tree
Showing 6 changed files with 800 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
# Use the latest version of Python 3.
strategy:
matrix:
python-version: [3.x]
python-version: [3.11.x]

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# Configures the build to use the latest version of Python 3.
strategy:
matrix:
python-version: [3.x]
python-version: [3.11.x]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
Expand All @@ -29,10 +29,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install poetry
- name: Install Python dependencies with Poetry
run: |
poetry install
- name: Run unit tests with Pytest
run: coverage run --source=src -m pytest -v
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.6
Loading

0 comments on commit 0d8abcb

Please sign in to comment.