Skip to content

Commit

Permalink
Using pip not poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkinch committed Feb 12, 2024
1 parent 5a7063d commit bc7c9fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Poetry
run: pip3 install poetry==1.4.0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Dependencies
run: |
poetry env use "${{ matrix.python-version }}"
poetry install --no-interaction --no-cache
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Test with pytest
run: poetry run pytest --dist no -n 0
run: make test
11 changes: 4 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,19 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Poetry
run: pip3 install poetry==1.4.0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "poetry"

- name: Install Dependencies
run: |
poetry env use "${{ matrix.python-version }}"
poetry install --no-interaction --no-cache
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Build documentation
run: poetry run pdoc --docformat google src/doms_databasen -o docs
run: pip install pdoc==7.3.0 && pdoc --docformat google src/doms_databasen -o docs

- name: Compress documentation
run: tar --directory docs/ -hcf artifact.tar .
Expand Down

0 comments on commit bc7c9fe

Please sign in to comment.