-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 2.1 KB
/
test-runner-actions.yml
File metadata and controls
59 lines (54 loc) · 2.1 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
58
59
name: test-runner-actions
run-name: ${{ github.actor }} is testing platform
on: workflow_dispatch
# Refer to
# https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manually-run-a-workflow?tool=cli
# jobs:
# test-macos-disk:
# runs-on: macos-13
# steps:
# - run: ps -ef
# - run: wget https://pyarmor.dashingsoft.com/downloads/temp/a.bin
# - run: chmod +x ./a.bin
# - run: ./a.bin
# jobs:
# test-ubuntu-disk:
# runs-on: ubuntu-latest
# steps:
# - run: ps -ef
# - run: wget https://pyarmor.dashingsoft.com/downloads/temp/a.out
# - run: chmod +x ./a.out
# - run: ./a.out
# jobs:
# test-windows-disk:
# runs-on: windows-latest
# steps:
# - run: echo "from ctypes import windll" > foo.py
# - run: echo "print(windll.kernel32.CreateFileA('\\\\.\\PhysicalDrive0', 0, 3, 0, 3, 0, 0))" >> foo.py
# - run: python foo.py
# - run: Invoke-WebRequest -Uri https://pyarmor.dashingsoft.com/downloads/temp/a.exe -UseBasicParsing -OutFile a.exe
# - run: .\a.exe
# - run: Get-Process
jobs:
test-ci-license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: wget https://pyarmor.dashingsoft.com/downloads/temp/citest9990.tar.gz
- run: tar xzf citest9990.tar.gz
- run: pip install citest/pyarmor_cli_core-8.1.0-cp310-none-manylinux1_x86_64.whl
- run: pip install citest/pyarmor-9.2.0.tar.gz
- run: sudo mv /dev/disk /dev/disk-none
- run: pyarmor reg citest/pyarmor-ci-8000.zip
- run: pyarmor gen --enable-rft citest/foo.py