-
Notifications
You must be signed in to change notification settings - Fork 685
42 lines (40 loc) · 1.16 KB
/
ci.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
name: CI
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
rust:
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.69.0
env:
# TODO: Remove after we're on Rust 1.70
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: "sparse"
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update && apt-get install make --yes
rustup component add rustfmt
rustup component add clippy
- name: Lint and test Rust code
run: |
make rust-lint
make rust-test
updater-gui-tests:
runs-on: ubuntu-latest
container: debian:bullseye
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update && apt-get install -y libqt5designer5 python3-venv
cd journalist_gui
python3 -m venv .venv/ && source .venv/bin/activate
pip install --require-hashes -r dev-requirements.txt
- name: Run tests
run: |
cd journalist_gui
source .venv/bin/activate
QT_QPA_PLATFORM=offscreen python3 test_gui.py -v