Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: udpate #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 39 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,50 @@
name: CI

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Check licenses
run: source .github/workflows/check_license.sh
- name: Check Python scripts
run: source .github/workflows/check_python_script.sh
- name: Check Python formatting
run: |
pip install black
black --check .
- name: Install Tox and any other packages
run: pip install tox
- name: Build package and run tests with Tox
run: tox -e py

- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Check licenses
run: source .github/workflows/check_license.sh

- name: Check Python scripts
run: source .github/workflows/check_python_script.sh

- name: Check Python formatting
run: |
pip install black
black --check .

- name: Install Tox and any other packages
run: pip install tox

- name: Build package and run tests with Tox
run: tox -e py