forked from translate/translate
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (58 loc) · 1.65 KB
/
setup.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
name: Distribution
on:
push:
branches-ignore:
- dependabot/**
- deepsource**
pull_request:
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: requirements/*.txt
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgettextpo-dev
- name: Update pip
run: pip install --upgrade pip wheel
- name: Install pip dependencies
run: |
pip install -r requirements/dev.txt
- name: Build sdist
run: make build
- name: Twine check
run: twine check dist/*
- name: Install test (source)
run: |
virtualenv test-ttk-release-src
. ./test-ttk-release-src/bin/activate
pip install dist/translate-toolkit-*.tar.gz
moz2po --help
python ./test-ttk-release-src/lib/python*/site-packages/translate/lang/identify.py README.rst
- name: Install test (wheel)
run: |
virtualenv test-ttk-release-whl
. ./test-ttk-release-whl/bin/activate
pip install dist/translate_toolkit*.whl
moz2po --help
python ./test-ttk-release-whl/lib/python*/site-packages/translate/lang/identify.py README.rst
- name: Run build
run: coverage run ./setup.py build
- name: Run setup
run: coverage run --append ./setup.py sdist
- name: Coverage
run: coverage xml
- uses: codecov/codecov-action@v3
with:
name: setup