Skip to content

Commit

Permalink
Fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Oct 13, 2023
1 parent bb54e06 commit 0ff1b1f
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies ☕️
run: |
pip install -U pip setuptools
Expand All @@ -29,16 +29,16 @@ jobs:
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies ☕️
run: |
pip install -U pip setuptools
Expand All @@ -63,6 +63,11 @@ jobs:
- "3.12"
name: test (python ${{ matrix.python-version }})
steps:
- name: Setup Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Checkout ⬇️
uses: actions/checkout@v4
with:
Expand All @@ -74,31 +79,35 @@ jobs:
name: cms-cat/order-data
persist-credentials: false

- name: Setup Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies ☕️
run: |
pip install -U pip setuptools
pip install .[dev]
- name: Test 🎢
run: |
ls -al
export ORDER_DATA_LOCATION="${PWD}/order-data"
export ORDER_COLORS="False"
./tests/test.sh
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Checkout ⬇️
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: recursive

- name: Checkout order-data 📊
uses: actions/checkout@v4
with:
name: cms-cat/order-data
persist-credentials: false

- name: Install dependencies ☕️
run: |
Expand All @@ -107,6 +116,8 @@ jobs:
- name: Run coverage test 🎢
run: |
export ORDER_DATA_LOCATION="${PWD}/order-data"
export ORDER_COLORS="False"
pytest --cov=order --cov-report xml:coverage.xml tests
- name: Upload report 🔝
Expand Down

0 comments on commit 0ff1b1f

Please sign in to comment.