Some checks failed
Python application test / build (pull_request) Has been cancelled
23 lines
489 B
YAML
23 lines
489 B
YAML
name: Python application test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-latest"
|
|
container: python:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
- name: Run tests
|
|
run: |
|
|
python -m unittest discover -s tests
|