@@ -17,25 +17,32 @@ jobs:
1717 - name : Checkout
1818 uses : actions/checkout@v3
1919
20- # use a version of python that does not require setup.py
2120 - name : Setup python
2221 uses : actions/setup-python@v4
2322 with :
2423 python-version : " 3.x"
2524
2625 - name : Lint
2726 run : |
28- touch requirements_${{ github.job }} .txt requirements.txt
29- pip install -r requirements.txt -r requirements_${{ github.job }} .txt -e .[dev]
27+ touch requirements-lint .txt requirements.txt
28+ pip install -r requirements.txt -r requirements-lint .txt -e .[dev]
3029 tox -e pre-commit,mypy
30+ mkdir -p lockfiles
31+ pip freeze > lockfiles/requirements-lint.txt
32+
33+ - name : Upload lockfiles
34+ uses : actions/upload-artifact@v3
35+ with :
36+ name : lockfiles
37+ path : lockfiles
3138
3239 test :
3340 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
3441 strategy :
3542 fail-fast : false
3643 matrix :
3744 os : ["ubuntu-latest"] # can add windows-latest, macos-latest
38- python : ["3.8", "3.9", "3.10"]
45+ python : ["3.8", "3.9", "3.10", "3.11" ]
3946
4047 runs-on : ${{ matrix.os }}
4148 env :
6875 name : ${{ matrix.python }}/${{ matrix.os }}
6976 files : cov.xml
7077
71- - name : Upload lock files
78+ - name : Upload lockfiles
7279 uses : actions/upload-artifact@v3
7380 with :
7481 name : lockfiles
9299 # ${GITHUB_REPOSITORY##*/} is the repo name without org
93100 # Replace this with the cli command if different to the repo name
94101 - name : Test cli works in sdist installed in local python
95- run : touch requirements.txt &&
96- pip install -r requirements.txt dist/*.whl &&
102+ run : |
103+ touch requirements.txt
104+ pip install -r requirements.txt dist/*.whl
97105 ${GITHUB_REPOSITORY##*/} --version
98106
99107 - name : Upload sdist and wheel as artifacts
@@ -159,7 +167,7 @@ jobs:
159167 mkdir -p lockfiles
160168 docker run --entrypoint pip ${{ env.IMAGE_REPOSITORY }} freeze > lockfiles/requirements.txt
161169
162- - name : Upload requirements.txt freeze file
170+ - name : Upload lockfiles
163171 uses : actions/upload-artifact@v3
164172 with :
165173 name : lockfiles
0 commit comments