forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.33 KB
/
Copy pathpython-package.yml
File metadata and controls
57 lines (46 loc) · 1.33 KB
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
name: Test and Publish
on: [push, pull_request]
jobs:
deploy:
strategy:
fail-fast: false
matrix:
os: [
"ubuntu-latest",
"macOS-latest",
"windows-latest"
]
python-version: [
"3.8",
"3.7",
"3.6",
]
architecture: ["x86", "x64"]
timeout-minutes: 30
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.architecture }} - ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pip wheel setuptools twine
pip install pytest lz4 brotli Pillow fsb5 texture2ddecoder
- name: Install module
run: |
python setup.py install
- name: Test with pytest
run: |
pytest -v -s
- name: Build and publish
if: success() && runner.os != 'Linux' && github.event_name == 'push'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/* --skip-existing