-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.06 KB
/
test.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
name: Tests
on:
push:
pull_request:
types: [opened]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
sudo python -m pip install --upgrade pip
sudo python -m pip install -e .
- name: Run Unit Tests
run: sudo python -m unittest
test-build-pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Twine and Build
run: sudo pip install twine build
- name: Create the distribution
run: |
git fetch --prune --unshallow --tags
sudo python -m build