-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.14 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.9, '3.10', '3.11', '3.12', pypy-3.10]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install gettext (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install gettext
- name: Install gettext (Windows)
if: matrix.os == 'windows-latest'
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
scoop install gettext
- run: pip install coverage tox
- run: tox -- coverage run --source=ocdsextensionregistry --append -m pytest
- run: coverage lcov
- uses: coverallsapp/github-action@v2