-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (47 loc) · 1.31 KB
/
ci.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
37
38
39
40
41
42
43
44
45
46
47
48
---
name: CI
on:
# Trigger on pushes to the main branch only.
push:
branches:
- main
pull_request:
branches:
- main
# Or run manually.
workflow_dispatch: {}
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
python-version:
- '3.9'
# - '3.10'
# - '3.11'
continue-on-error:
- false
runs-on: "${{ matrix.os }}"
continue-on-error: "${{ matrix.continue-on-error }}"
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server."
- run: echo "The branch name is ${{ github.ref }} and the repository is ${{ github.repository }}."
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install flit
flit install --extras=all
- name: run pytest
timeout-minutes: 5
run: pytest .
- name: checks repository for offensive / exclusive terms
uses: microsoft/InclusivenessAnalyzer@main
with:
excludeTerms: master