File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments