Skip to content

Commit 3176fd7

Browse files
committed
Changing actions versions
1 parent 6677bec commit 3176fd7

File tree

1 file changed

+69
-57
lines changed

1 file changed

+69
-57
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,41 @@ jobs:
66
CI:
77
continue-on-error: true
88
runs-on: ${{ matrix.os }}
9-
# Supported Versions:
9+
10+
# Supported Python versions:
1011
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
1112
strategy:
13+
fail-fast: false
1214
matrix:
1315
os: [macos-15-intel, macos-latest, windows-latest, ubuntu-latest]
14-
python-version: [3.9, "3.10", 3.11]
16+
python-version: ["3.9", "3.10", "3.11"]
17+
1518
steps:
1619
- uses: actions/checkout@v5
17-
- name: Setup Python environment
20+
21+
- name: Set up Python
1822
uses: actions/setup-python@v6
1923
with:
2024
python-version: ${{ matrix.python-version }}
21-
- name: Install Requirements
25+
cache: "pip"
26+
27+
- name: Install dependencies
2228
run: |
23-
python -m pip install --upgrade pip
24-
pip install flake8 pytest
25-
pip install -r requirements.txt
26-
pip install -r test/requirements.txt
27-
python setup.py install --user
28-
- name: Run Linter
29+
python -m pip install -U pip
30+
python -m pip install -U build flake8 pytest
31+
python -m pip install -r requirements.txt
32+
python -m pip install -r test/requirements.txt
33+
34+
- name: Build and install package (wheel)
35+
run: |
36+
python -m build --wheel
37+
python -m pip install dist/*.whl
38+
39+
- name: Run linter
2940
run: |
3041
flake8 setup.py dropbox example test
31-
- name: Run Unit Tests
42+
43+
- name: Run unit tests
3244
run: |
3345
pytest -v test/unit/test_dropbox_unit.py
3446
Docs:
@@ -63,49 +75,49 @@ jobs:
6375
run: |
6476
sphinx-build -b html docs build/html
6577
Integration:
66-
continue-on-error: true
67-
runs-on: ${{ matrix.os }}
68-
strategy:
69-
fail-fast: false
70-
matrix:
71-
os: [macos-15-intel, macos-latest, windows-latest, ubuntu-latest]
72-
python-version: ["3.9", "3.10", "3.11"]
73-
steps:
74-
- uses: actions/checkout@v5
75-
76-
- name: Set up Python
77-
uses: actions/setup-python@v6
78-
with:
79-
python-version: ${{ matrix.python-version }}
80-
cache: "pip"
81-
82-
- name: Install dependencies
83-
run: |
84-
python -m pip install -U pip
85-
python -m pip install -U build
86-
python -m pip install -r requirements.txt
87-
python -m pip install -r test/requirements.txt
88-
python -m pip install -U flake8 pytest
89-
90-
- name: Build and install package (wheel)
91-
run: |
92-
python -m build --wheel
93-
python -m pip install dist/*.whl
94-
95-
- name: Run integration tests
96-
env:
97-
LEGACY_USER_DROPBOX_TOKEN: ${{ secrets.LEGACY_USER_DROPBOX_TOKEN }}
98-
LEGACY_USER_CLIENT_ID: ${{ secrets.LEGACY_USER_CLIENT_ID }}
99-
LEGACY_USER_CLIENT_SECRET: ${{ secrets.LEGACY_USER_CLIENT_SECRET }}
100-
LEGACY_USER_REFRESH_TOKEN: ${{ secrets.LEGACY_USER_REFRESH_TOKEN }}
101-
SCOPED_USER_DROPBOX_TOKEN: ${{ secrets.SCOPED_USER_DROPBOX_TOKEN }}
102-
SCOPED_USER_CLIENT_ID: ${{ secrets.SCOPED_USER_CLIENT_ID }}
103-
SCOPED_USER_CLIENT_SECRET: ${{ secrets.SCOPED_USER_CLIENT_SECRET }}
104-
SCOPED_USER_REFRESH_TOKEN: ${{ secrets.SCOPED_USER_REFRESH_TOKEN }}
105-
SCOPED_TEAM_DROPBOX_TOKEN: ${{ secrets.SCOPED_TEAM_DROPBOX_TOKEN }}
106-
SCOPED_TEAM_CLIENT_ID: ${{ secrets.SCOPED_TEAM_CLIENT_ID }}
107-
SCOPED_TEAM_CLIENT_SECRET: ${{ secrets.SCOPED_TEAM_CLIENT_SECRET }}
108-
SCOPED_TEAM_REFRESH_TOKEN: ${{ secrets.SCOPED_TEAM_REFRESH_TOKEN }}
109-
DROPBOX_SHARED_LINK: ${{ secrets.DROPBOX_SHARED_LINK }}
110-
run: |
111-
pytest -v test/integration/test_dropbox.py
78+
continue-on-error: true
79+
runs-on: ${{ matrix.os }}
80+
strategy:
81+
fail-fast: false
82+
matrix:
83+
os: [macos-15-intel, macos-latest, windows-latest, ubuntu-latest]
84+
python-version: ["3.9", "3.10", "3.11"]
85+
steps:
86+
- uses: actions/checkout@v5
87+
88+
- name: Set up Python
89+
uses: actions/setup-python@v6
90+
with:
91+
python-version: ${{ matrix.python-version }}
92+
cache: "pip"
93+
94+
- name: Install dependencies
95+
run: |
96+
python -m pip install -U pip
97+
python -m pip install -U build
98+
python -m pip install -r requirements.txt
99+
python -m pip install -r test/requirements.txt
100+
python -m pip install -U flake8 pytest
101+
102+
- name: Build and install package (wheel)
103+
run: |
104+
python -m build --wheel
105+
python -m pip install dist/*.whl
106+
107+
- name: Run integration tests
108+
env:
109+
LEGACY_USER_DROPBOX_TOKEN: ${{ secrets.LEGACY_USER_DROPBOX_TOKEN }}
110+
LEGACY_USER_CLIENT_ID: ${{ secrets.LEGACY_USER_CLIENT_ID }}
111+
LEGACY_USER_CLIENT_SECRET: ${{ secrets.LEGACY_USER_CLIENT_SECRET }}
112+
LEGACY_USER_REFRESH_TOKEN: ${{ secrets.LEGACY_USER_REFRESH_TOKEN }}
113+
SCOPED_USER_DROPBOX_TOKEN: ${{ secrets.SCOPED_USER_DROPBOX_TOKEN }}
114+
SCOPED_USER_CLIENT_ID: ${{ secrets.SCOPED_USER_CLIENT_ID }}
115+
SCOPED_USER_CLIENT_SECRET: ${{ secrets.SCOPED_USER_CLIENT_SECRET }}
116+
SCOPED_USER_REFRESH_TOKEN: ${{ secrets.SCOPED_USER_REFRESH_TOKEN }}
117+
SCOPED_TEAM_DROPBOX_TOKEN: ${{ secrets.SCOPED_TEAM_DROPBOX_TOKEN }}
118+
SCOPED_TEAM_CLIENT_ID: ${{ secrets.SCOPED_TEAM_CLIENT_ID }}
119+
SCOPED_TEAM_CLIENT_SECRET: ${{ secrets.SCOPED_TEAM_CLIENT_SECRET }}
120+
SCOPED_TEAM_REFRESH_TOKEN: ${{ secrets.SCOPED_TEAM_REFRESH_TOKEN }}
121+
DROPBOX_SHARED_LINK: ${{ secrets.DROPBOX_SHARED_LINK }}
122+
run: |
123+
pytest -v test/integration/test_dropbox.py

0 commit comments

Comments
 (0)