Skip to content

Commit

Permalink
fix: create virtual env in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed May 18, 2024
1 parent e5ad07a commit 880a4bc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install lint deps only
- name: Install dependencies
if: steps.cq.outputs.cache-hit != 'true'
Expand All @@ -49,6 +55,12 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install lint deps only
- name: Install dependencies
if: steps.cq.outputs.cache-hit != 'true'
Expand All @@ -73,10 +85,16 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install only type check dependency
- name: Install dependencies
if: steps.cqtc.outputs.cache-hit != 'true'
run: poetry install --only=types --no-root
run: poetry install --only=types --no-root --no-interaction

- name: Check types
run: poetry run mypy tesk/
Expand All @@ -97,6 +115,12 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install lint deps only
- name: Install dependencies
if: steps.cq.outputs.cache-hit != 'true'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/code_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install all test dependencies
- name: Install dependencies
if: steps.ct-${{ matrix.python-version }}.outputs.cache-hit != 'true'
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/vulnerability_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install only type check dependency
- name: Install dependencies
if: steps.vt.outputs.cache-hit != 'true'
Expand All @@ -49,6 +55,12 @@ jobs:
python-version: '3.11'
cache: 'poetry'

- name: Create virtual environment
run: python -m venv .venv

- name: Activate virtual environment
run: source .venv/bin/activate

# Install only type check dependency
- name: Install dependencies
if: steps.vt.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 880a4bc

Please sign in to comment.