Skip to content

Commit

Permalink
Enable integration testing on Windows in GitHub CI
Browse files Browse the repository at this point in the history
- parameterize the test matrix
- apply conditions when certain steps will be executed
  • Loading branch information
atodorov committed Mar 20, 2020
1 parent d110656 commit f9d62e7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: kerberos
name: integration test

# NOTE: Restricting branches prevents jobs from being doubled since
# a push to a pull request triggers two events.
Expand All @@ -12,10 +12,12 @@ on:

jobs:
test-on-linux:
name: tcms-api on Linux
runs-on: ubuntu-latest
name: Py${{ matrix.python-version }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6]

steps:
Expand All @@ -32,6 +34,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
sudo apt-get install libkrb5-dev
pip install coverage kerberos
Expand All @@ -42,6 +45,7 @@ jobs:
make run-services
- name: Install & configure Kerberos client
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
KRB5_ADDR=`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' krb5_kiwitcms_org`
Expand Down

0 comments on commit f9d62e7

Please sign in to comment.