Fix cache for other OS on github actions
@@ -26,25 +26,34 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- - name: Cache poetry
+ - name: Install Poetry
+ run: |
+ python -m pip install poetry
+
+ - name: Make poetry use local .venv folder
+ run: poetry config virtualenvs.in-project true
+
+ - name: Set up cache
uses: actions/cache@v2
with:
- path: ~/.cache/pypoetry/virtualenvs
- key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
+ path: .venv
+ key: ${{ matrix.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
- python -m pip install poetry
poetry install
# Run pylint
- - name: Run pylint
+ - name: Run pylint on sc2 folder
run: |
poetry run pylint sc2
+
+ - name: Run pylint on examples folder
+ run: |
poetry run pylint examples
# Run tests
- - name: Run poetry pytest tests on pickle files
+ - name: Run pytest
run: |
poetry run pytest test
