-
Notifications
You must be signed in to change notification settings - Fork 175
62 lines (62 loc) · 2.25 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
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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: pip install --upgrade build twine
- name: Build package
run: python -m build
- name: Check package
run: twine check --strict dist/*
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
test:
strategy:
matrix:
include:
- { os: ubuntu-20.04, python: "3.7" }
- { os: ubuntu-20.04, python: "3.10" }
- { os: ubuntu-22.04, python: "3.10" }
- { os: windows-2019, python: "3.7", visual-studio: 2017 }
- { os: windows-2019, python: "3.10", visual-studio: 2017 }
- { os: windows-2019, python: "3.7", visual-studio: 2019 }
- { os: windows-2019, python: "3.10", visual-studio: 2019 }
- { os: windows-2019, python: "3.7", visual-studio: 2022 }
- { os: windows-2019, python: "3.10", visual-studio: 2022 }
- { os: windows-latest, python: "3.7", visual-studio: 2017 }
- { os: windows-latest, python: "3.10", visual-studio: 2017 }
- { os: windows-latest, python: "3.7", visual-studio: 2019 }
- { os: windows-latest, python: "3.10", visual-studio: 2019 }
- { os: windows-latest, python: "3.7", visual-studio: 2022 }
- { os: windows-latest, python: "3.10", visual-studio: 2022 }
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: pip install . --user
- name: Build prerequisites
run: ue4-docker build --target=build-prerequisites --visual-studio ${{ matrix.visual-studio || '2017' }}
- name: Run diagnostics
run: ue4-docker diagnostics all