Skip to content

Commit 280924f

Browse files
Implementation of python's caching (#266)
1 parent 52636cf commit 280924f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+126753
-7699
lines changed

.github/workflows/e2e-cache.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: e2e-cache
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
push:
8+
branches:
9+
- main
10+
- releases/*
11+
paths-ignore:
12+
- '**.md'
13+
14+
permissions:
15+
contents: read
16+
jobs:
17+
python-pip-dependencies-caching:
18+
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, windows-latest, macos-latest]
24+
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup Python
28+
uses: ./
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
cache: 'pip'
32+
- name: Install dependencies
33+
run: pip install numpy pandas requests
34+
35+
python-pipenv-dependencies-caching:
36+
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
os: [ubuntu-latest, windows-latest, macos-latest]
42+
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Install pipenv
46+
run: pipx install pipenv
47+
- name: Setup Python
48+
uses: ./
49+
with:
50+
python-version: ${{ matrix.python-version }}
51+
cache: 'pipenv'
52+
- name: Install dependencies
53+
run: pipenv install flake8
54+
55+
python-pip-dependencies-caching-path:
56+
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
57+
runs-on: ${{ matrix.os }}
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
os: [ubuntu-latest, windows-latest, macos-latest]
62+
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
63+
steps:
64+
- uses: actions/checkout@v2
65+
- name: Setup Python
66+
uses: ./
67+
with:
68+
python-version: ${{ matrix.python-version }}
69+
cache: 'pip'
70+
cache-dependency-path: __tests__/data/requirements.txt
71+
- name: Install dependencies
72+
run: pip install numpy pandas requests
73+
74+
python-pipenv-dependencies-caching-path:
75+
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
76+
runs-on: ${{ matrix.os }}
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
os: [ubuntu-latest, windows-latest, macos-latest]
81+
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
82+
steps:
83+
- uses: actions/checkout@v2
84+
- name: Install pipenv
85+
run: pipx install pipenv
86+
- name: Setup Python
87+
uses: ./
88+
with:
89+
python-version: ${{ matrix.python-version }}
90+
cache: 'pipenv'
91+
cache-dependency-path: '**/requirements-linux.txt'
92+
- name: Install dependencies
93+
run: pipenv install flake8

.licensed.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ allowed:
99
- mit
1010
- cc0-1.0
1111
- unlicense
12+
- 0bsd
1213

1314
reviewed:
1415
npm:

.licenses/npm/@actions/cache.dep.yml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/exec.dep.yml

+10-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/glob-0.1.2.dep.yml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/glob-0.2.0.dep.yml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/http-client-1.0.11.dep.yml

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/abort-controller.dep.yml

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/core-asynciterator-polyfill.dep.yml

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/core-auth.dep.yml

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@azure/core-http.dep.yml

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)