-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: test python3.8 and 3.9 with gh actions (#27)
* feat: test python3.8 and 3.9 with gh actions * feat(test): TestSemaphore test cls * fix(test): missing test deps
- Loading branch information
1 parent
67934a1
commit e1d0938
Showing
3 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: PyTest 3.8 | ||
|
||
on: | ||
push: | ||
branch: dev | ||
paths: | ||
- '**.py' | ||
- '**/pytest3.8.yaml' | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master, dev ] | ||
paths: | ||
- '**.py' | ||
- '**/pytest3.8.yaml' | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
#timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
path: ~/.cache/pip | ||
- os: macos-latest | ||
path: ~/Library/Caches/pip | ||
- os: windows-latest | ||
path: ~\AppData\Local\pip\Cache | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python (faster than using Python container) | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements-dev.txt') }} | ||
path: | | ||
${{ matrix.path }} | ||
- name: Cache joblib middleware cache | ||
uses: actions/cache@v3 | ||
with: | ||
# Include requirements.txt so we recache if web3 version changes | ||
key: forceupdatedeletethislater3-${{ runner.os }}-${{ matrix.network }}-${{ hashFiles('**/middleware.py') }}-${{ hashFiles('**/requirements.txt') }} | ||
path: | | ||
./cache/*/joblib/web3/middleware/filter/middleware | ||
- name: Install dependencies | ||
run: | | ||
pip install pytest | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Run test suite | ||
run: pytest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters