diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cc91ab0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: Test firefox_decrypt +on: [push] + +jobs: + test-latest-firefox: + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [ ubuntu, macos ] + python-version: [ 3.7, 3.8, 3.9, 3.10.0-alpha.6, pypy3 ] + firefox: [ 'latest-devedition', 'latest-esr', 'latest' ] + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Setup firefox ${{ matrix.firefox }} + uses: browser-actions/setup-firefox@latest + with: + firefox-version: ${{ matrix.firefox }} + - name: Run tests + run: | + cd tests + python run_all -v + + test-87-firefox: + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [ ubuntu, macos, windows ] + python-version: [ 3.7, 3.8, 3.9, 3.10.0-alpha.6, pypy3 ] + firefox: [ '87.0' ] + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Setup firefox ${{ matrix.firefox }} + uses: browser-actions/setup-firefox@latest + with: + firefox-version: ${{ matrix.firefox }} + - name: Run tests + run: | + cd tests + python run_all -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 50ca764..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -# stop using precise which is still the default -dist: xenial -# Using xenial also requires sudo -sudo: required -# Use containers instead of VMs -#sudo: false - -addons: - apt: - packages: - - libnss3 - -python: - - "3.6" - - "3.7" - -script: - - cd tests && ./run_all -v diff --git a/README.md b/README.md index 85bb866..5aa4c0c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Firefox Decrypt -[![Build Status](https://travis-ci.org/unode/firefox_decrypt.svg?branch=master)](https://travis-ci.org/unode/firefox_decrypt) [![wercker status](https://app.wercker.com/status/d9b714c5d195dd9e7582e8cd6f463982/m/master "wercker status")](https://app.wercker.com/project/byKey/d9b714c5d195dd9e7582e8cd6f463982) +![GitHub Actions status](https://github.com/unode/firefox_decrypt/actions/workflows/main.yml/badge.svg) **The master branch is unstable during migration to Python 3.** diff --git a/wercker.yml b/wercker.yml deleted file mode 100644 index e822c57..0000000 --- a/wercker.yml +++ /dev/null @@ -1,105 +0,0 @@ -py3: - box: python:3 - steps: - - install-packages: - packages: libnss3 - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - - -debian-stable: - box: debian:stable - steps: - - install-packages: - packages: python3 libnss3 - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - -debian-testing: - box: debian:testing - steps: - - install-packages: - packages: python3 libnss3 - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - -debian-unstable: - box: debian:unstable - steps: - - install-packages: - packages: python3 libnss3 - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - -fedora: - box: fedora:latest - steps: - - script: - name: Install packages - code: dnf install python3 nss -y - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - -centos: - box: centos:latest - steps: - - script: - name: Install packages - code: | - yum install -y https://centos7.iuscommunity.org/ius-release.rpm - yum install -y python37u nss -y - # This python package doesn't actually setup python3 only python3.6 - ln -s /usr/bin/python3.7 /usr/bin/python3 - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v - -alpine: - box: - id: alpine:latest - cmd: /bin/sh - steps: - - internal/docker-push: - disable-sync: true - - - script: - name: Install packages - code: | - apk update - apk add python3 nss - - - script: - name: Run tests - code: | - python3 --version - cd tests - ./run_all -v