Skip to content

feat: min refueling stops #53

feat: min refueling stops

feat: min refueling stops #53

Workflow file for this run

name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test Suite & Coverage (>98%)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python: ["3.8", "3.9"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.1.5
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Unit tests
run: |
poetry run pytest --cov=solutions --cov-fail-under=98 --cov-report=xml tests/
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
env_vars: OS,PYTHON
verbose: true