File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,20 +15,31 @@ jobs:
1515
1616 steps :
1717 - uses : actions/checkout@v3
18+
1819 - name : Set up Python ${{ matrix.python-version }}
1920 uses : actions/setup-python@v4
2021 with :
2122 python-version : ${{ matrix.python-version }}
22- - name : Install dependencies
23+
24+ - name : Create virtual environment
25+ run : |
26+ python -m venv venv
27+
28+ - name : Activate virtual environment and install dependencies
2329 run : |
30+ source venv/bin/activate
2431 python -m pip install --upgrade pip
25- pip install pytest
32+ pip install -r requirements.txt
2633 pip install -e .
27- - name : Lint with flake8
34+
35+ - name : Run linting
2836 run : |
37+ source venv/bin/activate
2938 pip install flake8
3039 flake8 nfc_library tests
31- - name : Test with pytest
40+
41+ - name : Run tests
3242 run : |
43+ source venv/bin/activate
3344 # Set CI=true to auto-skip hardware tests
3445 CI=true pytest tests/
Original file line number Diff line number Diff line change 1- nfcpy >= 1.0.4
2- ndef >= 0.3.0
3- pytest >= 6.0.0
4- black >= 21.5b2
5- isort >= 5.9.0
1+ nfcpy == 1.0.4
2+ ndeflib == 0.3.3
You can’t perform that action at this time.
0 commit comments