-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) 路 954 Bytes
/
learn_dsa.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
45
46
47
name: Learn DSA (CI)
on:
push:
paths:
- src/dsa/**
- .github/workflows/learn_dsa.yml
pull_request:
paths:
- src/dsa/**
- .github/workflows/learn_dsa.yml
defaults:
run:
working-directory: src/dsa
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9, "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --user nox==2021.10.1
- name: lint
run: nox -s lint
- name: test
run: nox --session test-${{ matrix.python-version }}
- name: Upload coverage report
run: |
nox -s coverage
bash <(curl -s https://codecov.io/bash)