mirror of
https://github.com/lowobservable/oec.git
synced 2026-01-11 23:53:04 +00:00
Update GitHub Actions workflow
This commit is contained in:
parent
a34b3d51b7
commit
9d1335068f
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -1,20 +1,20 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt --no-deps
|
pip install -r requirements.txt --no-deps
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: ./run_unit_tests.sh
|
run: ./run_unit_tests.sh
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
python -m unittest discover tests
|
# Display verbose output in CI environment.
|
||||||
|
if [ -n "$CI" ]; then
|
||||||
|
OPTS=-v
|
||||||
|
fi
|
||||||
|
|
||||||
|
python -m unittest discover $OPTS tests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user