Skip to content

Commit

Permalink
Merge pull request #111 from aai-institute/hotfix/ci-macos-venv
Browse files Browse the repository at this point in the history
Hotfix: CI pipeline venv
  • Loading branch information
Samuel Burbulla authored Apr 3, 2024
2 parents 5a9d2a9 + d3999b6 commit 15a6ced
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Setup venv
uses: ./.github/actions/setup-venv
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
os-name: ubuntu-latest
optional-dependencies: "[docs]"
cache: "pip"
- name: Install
run: |
pip install ".[docs]"
- run: mkdocs gh-deploy --force
32 changes: 19 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:
uses: actions/checkout@v4
with:
lfs: "true"
- name: Setup venv
uses: ./.github/actions/setup-venv
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
os-name: ${{ matrix.os }}
optional-dependencies: "[testing]"
cache: "pip"
- name: Install
run: |
pip install ".[testing]"
- name: Run pytest
run: |
pytest -v
Expand All @@ -52,12 +54,14 @@ jobs:
uses: actions/checkout@v4
with:
lfs: "true"
- name: Setup venv
uses: ./.github/actions/setup-venv
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
os-name: ${{ matrix.os }}
optional-dependencies: "[testing]"
cache: "pip"
- name: Install
run: |
pip install ".[testing]"
- name: Install missing system dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
Expand All @@ -75,12 +79,14 @@ jobs:
uses: actions/checkout@v4
with:
lfs: "true"
- name: Setup venv
uses: ./.github/actions/setup-venv
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
os-name: "ubuntu-latest"
optional-dependencies: "[testing]"
python-version: 3.11
cache: "pip"
- name: Install
run: |
pip install ".[testing]"
- name: Run tests and collect coverage
run: pytest --cov src
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 15a6ced

Please sign in to comment.