Skip to content

Commit

Permalink
CI: refresh slightly, store wheel artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jun 3, 2022
1 parent 0f43196 commit 55f0a66
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,51 @@ jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: "3.6"
cache: pip
cache-dependency-path: '**/requirements-dev.txt'
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install -e .
- name: Test with pytest
run: pytest -ra --cov .
- name: Cache deps
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: "3.10"
cache: pip
cache-dependency-path: '**/requirements-dev.txt'
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install -e .
- name: Lint
run: make lint
- name: Cache deps
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: "3.10"
cache: pip
cache-dependency-path: '**/requirements-dev.txt'
- name: Install
run: |
python -m pip install build
run: python -m pip install build
- run: python -m build
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist

0 comments on commit 55f0a66

Please sign in to comment.