Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

updated test_data path #45

updated test_data path

updated test_data path #45

Workflow file for this run

name: backend-code
on:
push:
pull_request:
jobs:
lint:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install dependencies
uses: awalsh128/[email protected]
with:
packages: libopencv-dev clang libclang-dev
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Check Formatting
uses: actions-rs/[email protected]
with:
command: fmt
args: >
--all
--check
--manifest-path backend/Cargo.toml
- name: Lint with Clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: >
--manifest-path backend/Cargo.toml
--workspace
--no-deps
--all-targets
--all-features
--
--deny warnings
test:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install dependencies
uses: awalsh128/[email protected]
with:
packages: libopencv-dev clang libclang-dev
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Create test_data directory
run: mkdir test_data
- name: Test
uses: actions-rs/[email protected]
with:
command: test
args: >
--all-targets
--all-features
--manifest-path backend/Cargo.toml