diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9cab526..97a5b04 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,12 +13,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.7" - - name: Install poetry - uses: abatilo/actions-poetry@v2.0.0 - with: - poetry-version: 1.1.4 - - name: Install dependencies - run: poetry install --no-dev + - name: Install Poetry + uses: abatilo/actions-poetry@v2.1.0 - name: Build and publish run: | poetry build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33c652b..c51eb49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,14 @@ name: Test on: [push] jobs: - build: + test: runs-on: windows-latest # strategy: # matrix: # python-version: [3.7, 3.8, 3.9] - + defaults: + run: + shell: bash steps: - uses: actions/checkout@v2 - name: Set up Python @@ -18,20 +20,10 @@ jobs: with: # python-version: ${{ matrix.python-version }} python-version: 3.7 - - name: Install poetry - uses: snok/install-poetry@v1.1.1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v2 - with: - path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + - name: Install Poetry + uses: abatilo/actions-poetry@v2.1.0 - name: Install dependencies run: poetry install - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - name: Type checking run: poetry run mypy src/wsl_tools # - name: Test with pytest