Skip to content

Commit

Permalink
Ci fix (#1)
Browse files Browse the repository at this point in the history
ci: fix poetry related actions
  • Loading branch information
sanzoghenzo authored Dec 18, 2020
2 parents 2cac6f8 + 0de8de4 commit 00a79d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,25 @@ 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
uses: actions/setup-python@v2
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
Expand Down

0 comments on commit 00a79d0

Please sign in to comment.