-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (39 loc) · 1.16 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
name: Lint and Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python_version: ['3.9']
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: tlambert03/setup-qt-libs@v1 # installs libraries necessary to run a Qt desktop environment on linux runners
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip virtualenv
python -m virtualenv pyenv
if [ "${{ runner.os }}" = "Windows" ]; then
source pyenv/Scripts/activate
else
source pyenv/bin/activate
fi
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Lint & Test
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
source pyenv/Scripts/activate
else
source pyenv/bin/activate
fi
pre-commit run --all-files