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
|
||||
|
||||
on: [push]
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
name: Build
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt --no-deps
|
||||
- name: Run unit tests
|
||||
run: ./run_unit_tests.sh
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt --no-deps
|
||||
- name: Run unit tests
|
||||
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