Skip to content

Rust port

Rust port #65

Workflow file for this run

name: CI
# On every pull request, but only on push to master
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { name: Windows, python: "3.11", os: windows-2019 }
- { name: Mac, python: "3.11", os: macos-latest }
- { name: "Ubuntu", python: "3.11", os: ubuntu-latest }
- { name: "3.12", python: "3.12", os: ubuntu-latest }
- { name: "3.11", python: "3.11", os: ubuntu-latest }
- { name: "3.9", python: "3.9", os: ubuntu-latest }
- { name: "3.8", python: "3.8", os: ubuntu-latest }
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install numpy -U --no-binary numpy
python -m pip install -e .["test"]
- name: Run pre-commit
if: ${{ matrix.name == 'Ubuntu' }}
run: |
python -m pip install pre-commit
pre-commit run --all-files
- name: Run Tests
run: |
python -m pytest --cov color_operations --cov-report xml --cov-report term-missing
- name: Upload Results
if: ${{ matrix.name == 'Ubuntu' }}
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: ${{ matrix.python }}
fail_ci_if_error: false