-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (51 loc) · 1.8 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on: [push]
jobs:
build-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install setuptools and wheel first
run: pip3 install setuptools wheel
- name: Install XVFB (Ubuntu only)
run: sudo apt-get install -y xvfb
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install XVFB (macOS only)
run: |
brew install --cask xquartz
echo "/usr/X11/bin" >> $GITHUB_PATH
if: ${{ matrix.os == 'macos-latest' }}
- name: Install dependencies (Python) (Ubuntu and macOS only)
run: make update
if: ${{ matrix.os != 'windows-latest' }}
- name: Install dependencies (Python) (Windows only)
run: make update CFLAGS=--user
if: ${{ matrix.os == 'windows-latest' }}
- name: Install dependencies (JS)
run: npm install
- name: Lint
run: make lint radon
- name: Test
run: make test test_system
- name: Docs
run: make docs
- name: Build package
run: make build
# - name: Push the docs
# uses: cpina/github-action-push-to-another-repository@master
# env:
# API_TOKEN_GITHUB: ${{ secrets.DOCS_API_TOKEN_GITHUB }}
# with:
# source-directory: 'docs/build'
# destination-github-username: ${{ secrets.DOCS_USERNAME_GITHUB }}
# destination-repository-name: 'webtraversallibrary-docs'
# user-email: ${{ secrets.DOCS_EMAIL_GITHUB }}