Skip to content

Commit 41d9038

Browse files
committed
Avoid using environment in CI pipeline
1 parent 3f7cb51 commit 41d9038

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,15 @@ jobs:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919
python-version: [3.9, 3.11]
2020
fail-fast: false
21-
defaults:
22-
run:
23-
shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }} -l {0} # Adjust shell based on OS
2421
steps:
2522
- name: Checkout
2623
uses: actions/checkout@v4
2724
- name: Setup Python
2825
uses: actions/setup-python@v5
2926
with:
3027
python-version: ${{ matrix.python-version }}
31-
- name: Create venv and install dependencies
32-
run: |
33-
python -m venv .venv
34-
.venv/Scripts/activate || source .venv/bin/activate
35-
pip install -e .[dev]
36-
- name: Activate venv for later steps
37-
run: |
38-
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
39-
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH # For Unix-like systems
40-
echo "$(pwd)/.venv/Scripts" >> $GITHUB_PATH # For Windows
28+
- name: Install dependencies
29+
run: pip install -e .[dev]
4130

4231
- name: ruff
4332
run: ruff check .

0 commit comments

Comments
 (0)