Skip to content

Commit 1d9c2b1

Browse files
committed
Cleanup project
1 parent 59908fe commit 1d9c2b1

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff 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/

requirements.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
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

0 commit comments

Comments
 (0)