Giter Club home page Giter Club logo

safir's People

Contributors

athornton avatar cbanek avatar dependabot[bot] avatar dhirving avatar fajpunk avatar fritzm avatar jonathansick avatar rra avatar sqrbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ugyballoons

safir's Issues

Look into caching .tox in GitHub actions

If we can cache .tox in GitHub Actions we could speed up the CI a lot. However, in practice, I find that Tox won't run from a cached .tox directory. It could be worth looking into this.

The workflow is:

name: Python CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python:
          - 3.7
          - 3.8

    steps:
      - uses: actions/checkout@v2

      - name: Set up Python
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python }}

      - name: Install tox
        run: pip install tox

      - name: Cache tox environments
        id: cache-tox
        uses: actions/cache@v1
        with:
          path: .tox
          # setup.cfg, pyproject.toml, and .pre-commit-config.yaml have
          # versioning info that would impact the tox environment. hashFiles
          # only takes a single file path or pattern at the moment.
          key: ${{ runner.os }}-${{ matrix.python }}-tox-${{ hashFiles('setup.cfg') }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('.pre-commit-config.yaml') }}

      - name: Run tox
        run: tox -e py,lint,typing  # run tox using Python in path

The error is:

 Run tox 1s
15
##[error]Process completed with exit code 2.
1
Run tox -e py,lint,typing
6
ERROR: invocation failed (exit code 1), logfile: /home/runner/work/safir/safir/.tox/.package/log/.package-4.log
7
================================== log start ===================================
8
Traceback (most recent call last):
9
  File "/opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py", line 7, in <module>
10
    backend = __import__(backend_spec, fromlist=[None])
11
ModuleNotFoundError: No module named 'setuptools'
12

13
=================================== log end ====================================
14
ERROR: FAIL could not package project - v = InvocationError("/home/runner/work/safir/safir/.tox/.package/bin/python /opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py setuptools.build_meta ''", 1)
15
##[error]Process completed with exit code 2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.