@@ -21,13 +21,13 @@ jobs:
21
21
matrix :
22
22
python-version : [3.6, 3.7, 3.8, 3.9]
23
23
steps :
24
- - uses : actions/checkout@v2.3.4
24
+ - uses : actions/checkout@v2.4.0
25
25
- name : Set up Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v2.2.2
26
+ uses : actions/setup-python@v2.3.1
27
27
with :
28
28
python-version : ${{ matrix.python-version }}
29
29
- name : Cache pip
30
-
30
+
31
31
with :
32
32
path : ~/.cache/pip
33
33
key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
@@ -38,20 +38,20 @@ jobs:
38
38
pip install .
39
39
- name : Test with pytest
40
40
run : |
41
- pytest tests/test_api.py --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
41
+ pytest tests/ --api_key ${{ secrets.CODEFORCES_API_KEY }} --api_secret ${{ secrets.CODEFORCES_API_SECRET }} -v
42
42
publish :
43
43
if : startsWith(github.ref, 'refs/tags/')
44
44
needs : test
45
45
name : Build and publish Python 🐍 distributions 📦 to PyPI
46
46
runs-on : ubuntu-latest
47
47
steps :
48
- - uses : actions/checkout@v2.3.4
48
+ - uses : actions/checkout@v2.4.0
49
49
- name : Set up Python 3.9
50
- uses : actions/setup-python@v2.2.2
50
+ uses : actions/setup-python@v2.3.1
51
51
with :
52
52
python-version : 3.9
53
53
- name : Cache pip
54
-
54
+
55
55
with :
56
56
path : ~/.cache/pip
57
57
key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
65
65
run : |
66
66
python setup.py sdist
67
67
- name : Publish distribution 📦 to PyPI
68
- uses : pypa/gh-action-pypi-publish@v1.4.2
68
+ uses : pypa/gh-action-pypi-publish@v1.5.0
69
69
with :
70
70
password : ${{ secrets.pypi_password }}
71
71
release :
75
75
runs-on : ubuntu-latest
76
76
steps :
77
77
- name : Checkout code
78
- uses : actions/checkout@v2.3.4
78
+ uses : actions/checkout@v2.4.0
79
79
- name : Create Release
80
80
id : create_release
81
81
0 commit comments