forked from sumpfork/dominiontabs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 971 Bytes
/
lint_and_test.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
name: Lint and Test
on: [push, pull_request, workflow_dispatch]
jobs:
lint_and_test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
pip install -r requirements.txt
pip install .
- name: Install locales
if: ${{ matrix.os == 'ubuntu-latest'}}
run: |
sudo apt update
sudo apt -y install locales
sudo locale-gen en_US.UTF-8
sudo locale-gen de_DE.UTF-8
sudo locale-gen fr_FR.UTF-8
sudo locale-gen en_US.UTF-8
sudo locale-gen es_ES.UTF-8
sudo locale-gen it_IT.UTF-8
sudo locale-gen nl_NL.UTF-8
sudo locale-gen cs_CZ.UTF-8
- name: Lint
run: pre-commit run --all-files
- name: Test
run: pytest