From 5f52f72a9440e3d1fd993a80d03feac2615722f1 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 7 Nov 2020 13:42:44 -0800 Subject: [PATCH] add other OSes --- .github/workflows/python-app.yml | 51 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 585dde8b..a1f4b069 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -10,33 +10,34 @@ on: branches: [ develop ] jobs: + runs-on: ${{ matrix.os }} build: - - runs-on: ubuntu-latest strategy: matrix: python-version: [3.7, 3.8, 3.9] + os: [ ubuntu-latest, macos-latest, windows-latest ] - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - uses: actions/cache@v2 - with: - path: | - .venv - ~/.cache/pip - key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install poetry - poetry config --local virtualenvs.in-project true - poetry install --remove-untracked - - name: Test with pytest - run: | - poetry run pytest - - name: Test with behave - run: | - poetry run behave --no-skipped --format progress2 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - uses: actions/cache@v2 + with: + path: | + .venv + ~/.cache/pip + key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install poetry + poetry config --local virtualenvs.in-project true + poetry install --remove-untracked + - name: Test with pytest + run: | + poetry run pytest + - name: Test with behave + run: | + poetry run behave --no-skipped --format progress2