-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 959 Bytes
/
Copy pathpythonpackage.yml
File metadata and controls
44 lines (38 loc) · 959 Bytes
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
name: Test
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -qq libuv1-dev -y
python -m pip install --upgrade pip
pip install mys
- name: Test
run: |
mys test
release:
needs: [linux]
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags')
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mys
- name: Publish release to mys-lang.org
run: |
mys publish -t ${{secrets.publish_token}}