Skip to content

Commit

Permalink
1891 add build step for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrKhabarov committed Feb 23, 2021
1 parent 8ba772e commit f066af8
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,50 @@ jobs:
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml

build-win:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: crazy-max/ghaction-chocolatey@v1
- name: Install curl and make
with:
args: install curl make -y

- name: Install poetry
run: |
pip install -U pip
curl -sSL \
"https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python -
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry run pip install -U pip
poetry install
- name: Run tests
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml

0 comments on commit f066af8

Please sign in to comment.