-
-
Notifications
You must be signed in to change notification settings - Fork 427
31 lines (25 loc) · 935 Bytes
/
checks.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: 🌼 Release checks
# on: [push, pull_request]
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd $GITHUB_WORKSPACE && pip install .[test]
- name: Run README_examples.py
run: |
cd $GITHUB_WORKSPACE/docs/readme
python README_examples.py
- name: Build package and test with twine
run: |
python -m pip install --upgrade setuptools pip wheel twine
python setup.py sdist bdist_wheel
python -m twine check dist/*