Skip to content

Fix failing Windows checks #223

Closed
Closed

Description

@fdiblen

GitHub actions fail on Windows. We should fix it.
Related to #140

Activity

  1. added
    generated-package
    on Apr 22, 2021
  2. added this to the milestone on Apr 22, 2021
  3. self-assigned this
    on Apr 28, 2021
  4. modified the milestones: , 0.4.0 on Apr 28, 2021
  5. removed their assignment
    on Apr 28, 2021
  6. sverhoeven commented on Apr 28, 2021

    @sverhoeven
    Member

    Spend a lot of time trying to fixit, but gave up for now
    Windows has been disabled in #241 . Failed attempts are #233 and #229

  7. jspaaks commented on Apr 28, 2021

    @jspaaks

    Not sure if this is caused by how we test the template or an different reason. If it is the former, I'm wondering if some of those difficulties go away if we don't try to run the template level's pytest to check the generated package?

    For example, what if we have two virtual environments, one for the template, the other for the generated package? We could make 2 jobs out of it in one workflow.

  8. sverhoeven commented on Apr 29, 2021

    @sverhoeven
    Member

    Creating a env on Windows is kaput just having following in GHA workflow:

        - name: venv
          run: python3 -m venv env
    

    Fails with

    Run python3 -m venv env
      python3 -m venv env
      shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
      env:
        pythonLocation: C:\hostedtoolcache\windows\Python\3.9.4\x64
    Error: [WinError 2] The system cannot find the file specified
    Error: Process completed with exit code 1.
    
  9. self-assigned this
    on Apr 29, 2021
  10. sverhoeven commented on May 3, 2021

    @sverhoeven
    Member

    Not sure if this is caused by how we test the template or an different reason. If it is the former, I'm wondering if some of those difficulties go away if we don't try to run the template level's pytest to check the generated package?

    For example, what if we have two virtual environments, one for the template, the other for the generated package? We could make 2 jobs out of it in one workflow.

    In #266 I am, only for Windows CI using the Python version created by actions/setup-python step instead of creating a new virtualenv.

  11. sverhoeven commented on May 3, 2021

    @sverhoeven
    Member

    In #266 Windows test where fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

generated-package

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions