Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
* Bump versions of all imported actions
* Cache Python packages
* Do not upgrade pip
  • Loading branch information
drhagen committed Jul 26, 2022
1 parent dc3318d commit 82296a2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Poetry
run: pip install poetry==1.2.0b1
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install poetry==1.2.0b1
poetry install
run: poetry install
- name: Test with nox
run: poetry run nox -s test-${{ matrix.python-version }}
- name: Store coverage
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: coverage
path: .coverage.*
Expand All @@ -32,37 +32,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Poetry
run: pip install poetry==1.2.0b1
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: poetry
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install poetry==1.2.0b1
poetry install
run: poetry install
- name: Fetch coverage
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: coverage
- name: Combine coverage and generate report
run: poetry run nox -s coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Poetry
run: pip install poetry==1.2.0b1
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: poetry
- name: Install environment
run: |
python -m pip install --upgrade pip
pip install poetry==1.2.0b1
poetry install
run: poetry install
- name: Run code quality checks
run: poetry run nox -s black isort lint

0 comments on commit 82296a2

Please sign in to comment.