Skip to content

Add static method from_optional #90

Add static method from_optional

Add static method from_optional #90

Workflow file for this run

name: Run Python Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Install rusty_results
run: pip install -e .
- name: Run tests with pytest
run: pytest
- name: Run mypy on result.py
run: mypy rusty_results/prelude.py
- name: Build coverage file
run: pytest --cache-clear --cov=rusty_results --cov-report=xml:pytest-coverage.xml ./rusty_results
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./pytest-coverage.xml
fail_ci_if_error: true