-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (50 loc) · 1.47 KB
/
python.yaml
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
# SPDX-FileCopyrightText: 2015-2023 EasyCoding Team
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Python CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build:
name: Build project
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Fetching sources
uses: actions/checkout@v3
- name: Setting up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Updating apt package metadata
run: |
sudo apt-get update
- name: Installing development packages
run: |
sudo apt-get -y install build-essential libgirepository1.0-dev
- name: Installing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Decrypting tests suite file
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$SUITE_KEY" \
--output ".github/workflows/assets/wloc_tests.json" ".github/workflows/assets/wloc_tests.json.gpg"
env:
SUITE_KEY: ${{ secrets.SUITE_KEY }}
- name: Running tests
run: |
tox
env:
SUITE_FILENAME: .github/workflows/assets/wloc_tests.json
APIKEY_GOOGLE: ${{ secrets.APIKEY_GOOGLE }}
APIKEY_MOZILLA: ${{ secrets.APIKEY_MOZILLA }}
APIKEY_YANDEX: ${{ secrets.APIKEY_YANDEX }}