-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.08 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
name: build
on:
push:
branches: [ main ]
pull_request:
schedule: # run weekly
- cron: "0 12 * * 0"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10"]
os: [macos-latest, ubuntu-latest] # windows-latest
include:
- os: macos-latest
INSTALL_BREW_DEPS: brew install cairo pango gdk-pixbuf libffi
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v3
- name: install homebrew dependencies
run: ${{ matrix.INSTALL_BREW_DEPS }}
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: setup.cfg
- name: install package and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e .[dev]
- name: test with pytest
run: |
python -m pytest tests -v --cov=py_great_resume --cov-report=term-missing