-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 952 Bytes
/
test.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
36
name: Test
on: [push, pull_request]
jobs:
Test:
runs-on: ${{ matrix.os }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dev package
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Test with pytest
run: |
pip install -r requirements.dev.txt
- name: Publish to test.ipynb pypi
env:
FLIT_INDEX_URL: https://test.ipynb.pypi.org/legacy/
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: flit publish || exit 0