-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 994 Bytes
/
main.yaml
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
name: mininf
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
- name: Install Python dependencies.
run: pip install --extra-index-url https://download.pytorch.org/whl/cpu --no-compile --no-deps -r requirements.txt
- name: Lint the code.
run: make lint
- name: Run the tests.
run: make tests
- name: Build the documentation.
run: make docs
- name: Run the doctests.
run: make doctests
- name: Package the code.
run: make package
- name: Publish to PyPI.
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: make publish