diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index aa96e56..161d29a 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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.* @@ -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